object-assign
Advanced tools
Comparing version 0.1.2 to 0.2.0
@@ -13,3 +13,3 @@ /*! | ||
if (val == null) { | ||
throw new TypeError(); | ||
throw new TypeError('Object.assign can not be called with null or undefined'); | ||
} | ||
@@ -25,5 +25,4 @@ | ||
var keys = Object.keys(from); | ||
var i = keys.length; | ||
while (i--) { | ||
for (var i = 0; i < keys.length; i++) { | ||
try { | ||
@@ -30,0 +29,0 @@ to[keys[i]] = from[keys[i]]; |
{ | ||
"name": "object-assign", | ||
"version": "0.1.2", | ||
"version": "0.2.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
2934
40