object-assign
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -13,3 +13,3 @@ /*! | ||
if (val == null) { | ||
throw new TypeError('Object.assign can not be called with null or undefined'); | ||
throw new TypeError('Object.assign cannot be called with null or undefined'); | ||
} | ||
@@ -16,0 +16,0 @@ |
{ | ||
"name": "object-assign", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "ES6 Object.assign() ponyfill", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -5,5 +5,5 @@ # object-assign [![Build Status](https://travis-ci.org/sindresorhus/object-assign.png?branch=master)](http://travis-ci.org/sindresorhus/object-assign) | ||
I would love for this to be a fully compliant polyfill, but I have no idea how to read the [ES6 spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign). Help appreciated :) | ||
Should be pretty close to the spec. | ||
> Ponyfill: An almost conforming polyfill which doesn't overwrite the native method | ||
> Ponyfill: A polyfill that doesn't overwrite the native method | ||
@@ -53,4 +53,16 @@ | ||
## Multiple sources | ||
Unfortunately support for multiple sources aren't defined in the Object.assign spec. | ||
However, you can easily achieve it with `[target, source, source, ...].reduce(objectAssign)`. | ||
## Resources | ||
- [ES6 spec - Object.assign](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign) | ||
## License | ||
MIT © [Sindre Sorhus](http://sindresorhus.com) |
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
3074
67