Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 0.4.0 to 1.0.0

index.js

5

package.json
{
"name": "object-assign",
"version": "0.4.0",
"version": "1.0.0",
"description": "ES6 Object.assign() ponyfill",
"license": "MIT",
"main": "object-assign.js",
"repository": "sindresorhus/object-assign",

@@ -20,3 +19,3 @@ "author": {

"files": [
"object-assign.js"
"index.js"
],

@@ -23,0 +22,0 @@ "keywords": [

16

readme.md

@@ -14,14 +14,8 @@ # object-assign [![Build Status](https://travis-ci.org/sindresorhus/object-assign.svg?branch=master)](https://travis-ci.org/sindresorhus/object-assign)

```sh
$ bower install --save object-assign
```
```sh
$ component install sindresorhus/object-assign
```
## Usage
```js
var objectAssign = require('object-assign');
objectAssign({foo: 0}, {bar: 1});

@@ -33,2 +27,6 @@ //=> {foo: 0, bar: 1}

//=> {foo: 0, bar: 1, baz: 2}
// ignores null and undefined sources
objectAssign({foo: 0}, null, {bar: 1}, undefined);
//=> {foo: 0, bar: 1, baz: 2}
```

@@ -51,2 +49,2 @@

[MIT](http://opensource.org/licenses/MIT) © [Sindre Sorhus](http://sindresorhus.com)
MIT © [Sindre Sorhus](http://sindresorhus.com)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc