🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

object-assign

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-assign - npm Package Compare versions

Comparing version

to
0.2.1

2

object-assign.js

@@ -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)