Use spread operator in flattenArguments

This commit is contained in:
Dan Stillman 2017-07-07 18:18:45 -04:00
parent f2af77498b
commit 941ae5499c

View file

@ -1430,9 +1430,7 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js");
continue;
}
if (Array.isArray(arg)) {
for (var j=0; j<arg.length; j++){
returns.push(arg[j]);
}
returns.push(...arg);
}
else {
returns.push(arg);