merge-descriptors (1.0.3)
Published 2026-02-24 14:01:18 +00:00 by atheaadmin
Installation
registry=npm install merge-descriptors@1.0.3"merge-descriptors": "1.0.3"About this package
merge-descriptors
Merge objects using descriptors.
var thing = {
get name() {
return 'jon'
}
}
var animal = {
}
merge(animal, thing)
animal.name === 'jon'
API
merge(destination, source)
Redefines destination's descriptors with source's. The return value is the
destination object.
merge(destination, source, false)
Defines source's descriptors on destination if destination does not have
a descriptor by the same name. The return value is the destination object.
License
Dependencies
Development Dependencies
| ID | Version |
|---|---|
| eslint | 5.9.0 |
| eslint-config-standard | 12.0.0 |
| eslint-plugin-import | 2.14.0 |
| eslint-plugin-node | 7.0.1 |
| eslint-plugin-promise | 4.0.1 |
| eslint-plugin-standard | 4.0.0 |
| mocha | 5.2.0 |
| nyc | 13.1.0 |
Details
Assets (1)
Versions (2)
View all
merge-descriptors-1.0.3.tgz
2.3 KiB