xtend

4.0.2last stable release 6 years ago
Complexity Score
Low
Open Issues
0
Dependent Projects
2,942
Weekly Downloadsglobal
34,405,224

License

  • MIT
    • Yesattribution
    • Permissivelinking
    • Permissivedistribution
    • Permissivemodification
    • Nopatent grant
    • Yesprivate use
    • Permissivesublicensing
    • Notrademark grant

Downloads

Readme

DEPRECATED: xtend

This function is too small, just copy & paste it.

Also Object.assign(a, b) or { ...a } for shallow extension / copies.

Description

Extend like a boss

xtend is a basic utility library which allows you to extend an object by appending all of the properties from each object in a list. When there are identical properties, the right-most property takes precedence.

Examples

var extend = require("xtend")

// extend returns a new object. Does not mutate arguments
var combination = extend({
    a: "a",
    b: "c"
}, {
    b: "b"
})
// { a: "a", b: "b" }

Stability status: Locked

MIT Licensed

Dependencies

No runtime dependency information found for this package.

CVE IssuesActive
0
Scorecards Score
3.70
Test Coverage
No Data
Follows Semver
Yes
Github Stars
304
Dependenciestotal
1
DependenciesOutdated
1
DependenciesDeprecated
0
Threat Modelling
No
Repo Audits
No

Learn how to distribute xtend in your own private NPM registry

npm config set registry  https://npm.cloudsmith.com/owner/repo
Processing...
Done
npm install xtend
Processing...
Done

17 Releases

NPM on Cloudsmith

Getting started with NPM on Cloudsmith is fast and easy.