1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-08 23:25:51 +01:00

refactor: 🔨 use rest spread replace prototype.push.apply

This commit is contained in:
Meeeeow 2017-12-04 00:39:13 +08:00 committed by juanpicado
parent 6732d2bdcd
commit 6a2bcd529a

@ -379,8 +379,7 @@ class Storage {
return options.callback(err);
}
const propertyToKeep = [];
Array.prototype.push.apply(propertyToKeep, WHITELIST);
const propertyToKeep = [...WHITELIST];
if (options.keepUpLinkData === true) {
propertyToKeep.push('_uplinks');
}