object.assign
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -0,5 +1,12 @@ | ||
0.2.0 / 2014-03-15 | ||
================== | ||
* Use a "for" loop instead of "reduce", for silly ES3 browsers. | ||
0.1.1 / 2014-03-14 | ||
================== | ||
* Updating readme | ||
0.1.0 / 2014-03-14 | ||
================== | ||
* Initial release. | ||
@@ -7,6 +7,7 @@ "use strict"; | ||
var assignShim = function assign(target, source) { | ||
return keys(source).reduce(function (target, key) { | ||
target[key] = source[key]; | ||
return target; | ||
}, target); | ||
var props = keys(source); | ||
for (var i = 0; i < props.length; ++i) { | ||
target[props[i]] = source[props[i]]; | ||
} | ||
return target; | ||
}; | ||
@@ -13,0 +14,0 @@ |
{ | ||
"name": "object.assign", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"author": "Jordan Harband", | ||
@@ -5,0 +5,0 @@ "description": "ES6 spec-compliant Object.assign shim. From https://github.com/es-shims/es6-shim", |
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
7881
68