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

es6-object-assign

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
e

es6-object-assign

ECMAScript 2015 (ES6) Object.assign polyfill and ponyfill

1.1.0
latest
67

Supply Chain Security

100

Vulnerability

99

Quality

51

Maintenance

100

License

Socket optimized override available

Maintenance

Package can be replaced with a Socket optimized override.

Found 1 instance in 1 package

Version published
Weekly downloads
1.7M
-18.51%
Maintainers
1
Weekly downloads
 
Created
Issues
0

What is es6-object-assign?

The es6-object-assign package is a polyfill for the Object.assign() method, which is part of the ECMAScript 2015 (ES6) standard. This method is used to copy the values of all enumerable own properties from one or more source objects to a target object, returning the target object. This package ensures compatibility for environments where Object.assign() is not natively supported.

What are es6-object-assign's main functionalities?

Polyfill for Object.assign

This feature allows the user to merge multiple objects into a single object, combining their properties. It is particularly useful for merging configurations or settings objects in JavaScript applications.

var objectAssign = require('es6-object-assign').assign;
var obj1 = { a: 1 };
var obj2 = { b: 2 };
var result = objectAssign(obj1, obj2);
console.log(result); // Output: { a: 1, b: 2 }

Other packages similar to es6-object-assign

FAQs

Package last updated on 18 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts