object-assign
Advanced tools
Comparing version 2.0.0 to 3.0.0
15
index.js
'use strict'; | ||
var propIsEnumerable = Object.prototype.propertyIsEnumerable; | ||
@@ -11,2 +12,14 @@ function ToObject(val) { | ||
function ownEnumerableKeys(obj) { | ||
var keys = Object.getOwnPropertyNames(obj); | ||
if (Object.getOwnPropertySymbols) { | ||
keys = keys.concat(Object.getOwnPropertySymbols(obj)); | ||
} | ||
return keys.filter(function (key) { | ||
return propIsEnumerable.call(obj, key); | ||
}); | ||
} | ||
module.exports = Object.assign || function (target, source) { | ||
@@ -19,3 +32,3 @@ var from; | ||
from = arguments[s]; | ||
keys = Object.keys(Object(from)); | ||
keys = ownEnumerableKeys(Object(from)); | ||
@@ -22,0 +35,0 @@ for (var i = 0; i < keys.length; i++) { |
{ | ||
"name": "object-assign", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "ES6 Object.assign() ponyfill", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3773
4
30