Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Jun 20, 2024 via pnpm
Package summary
Share
0
issues
1
license
1
MIT
Package created
2 Feb 2014
Version published
16 Jan 2017
Maintainers
3
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
object-assign@4.1.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of object-assign 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does object-assign do?

The "object-assign" is a popular npm package that works as an ES2015 Object.assign() ponyfill. This JavaScript utility function assigns enumerable own properties of the source objects to the target object and returns the target object. If multiple source objects are provided, later ones will overwrite those of earlier ones. The function also ignores null and undefined source objects.

How do you use object-assign?

The "object-assign" package can be utilized by first installing the package using npm using the command npm install --save object-assign. After successful installation, you can then require the function in your JavaScript code. Here's an example:

const objectAssign = require('object-assign');

// single source
let result = objectAssign({foo: 0}, {bar: 1});
console.log(result); // Outputs: {foo: 0, bar: 1}

// multiple sources
result = objectAssign({foo: 0}, {bar: 1}, {baz: 2});
console.log(result); // Outputs: {foo: 0, bar: 1, baz: 2}

// overwriting equal keys
result = objectAssign({foo: 0}, {foo: 1}, {foo: 2});
console.log(result); // Outputs: {foo: 2}

// ignores null and undefined sources
result = objectAssign({foo: 0}, null, {bar: 1}, undefined);
console.log(result); // Outputs: {foo: 0, bar: 1}

Where are the object-assign docs?

The documentation for the "object-assign" npm package can be found within its README file on its official GitHub repository, accessible via the following URL: https://github.com/sindresorhus/object-assign. The documentation includes details about the package such as how to install and use it, its application programming interface (API), related resources, and its license information.