215 MB
4,079 files
Updated 2 days ago
Name
Size
HISTORY.md363 Bytes
xet
LICENSE1.17 kB
xet
README.md1.31 kB
xet
index.js1.22 kB
xet
package.json1.03 kB
xet
README.md

merge-descriptors

NPM Version NPM Downloads Build Status Test Coverage

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

MIT

Total size
215 MB
Files
4,079
Last updated
Aug 7
Pre-warmed CDN
US EU US EU

Contributors