fix experimental object spread/rest helper
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
(function (target, keys) {
|
||||
(function (obj, keys) {
|
||||
var target = {};
|
||||
for (var i in target) {
|
||||
for (var i in obj) {
|
||||
if (keys.indexOf(i) >= 0) continue;
|
||||
if (!Object.prototype.hasOwn.call(target)) continue;
|
||||
target[i] = target[i];
|
||||
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
||||
target[i] = obj[i];
|
||||
}
|
||||
return target;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user