diff --git a/src/lib/storage.js b/src/lib/storage.js index b6458f10f..414126d44 100644 --- a/src/lib/storage.js +++ b/src/lib/storage.js @@ -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'); }