Use spread operator in flattenArguments
This commit is contained in:
parent
f2af77498b
commit
941ae5499c
|
@ -1430,9 +1430,7 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (Array.isArray(arg)) {
|
if (Array.isArray(arg)) {
|
||||||
for (var j=0; j<arg.length; j++){
|
returns.push(...arg);
|
||||||
returns.push(arg[j]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
returns.push(arg);
|
returns.push(arg);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user