merge-descriptors
Merge objects using descriptors
Last updated 5 years ago by dougwilson .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install merge-descriptors 
SYNC missed versions from official npm registry.

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.

merge(destination, source, false)

Defines source's descriptors on destination if destination does not have a descriptor by the same name.

License

MIT

Current Tags

  • 1.0.1                                ...           latest (5 years ago)

4 Versions

  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           6 years ago
  • 0.0.2                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
Downloads
Today 11,246
This Week 132,553
This Month 439,348
Last Day 30,303
Last Week 167,432
Last Month 715,720
Dependencies (0)
None
Dev Dependencies (2)
Dependents (365)

Copyright 2014 - 2016 © taobao.org |