Use spread operator in flattenArguments
This commit is contained in:
parent
f2af77498b
commit
941ae5499c
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue