merge-descriptors
Merge objects using descriptors
Last updated 4 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 (4 years ago)

4 Versions

  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           5 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Downloads
Today 2,694
This Week 111,014
This Month 227,086
Last Day 7,365
Last Week 110,703
Last Month 467,029
Dependencies (0)
None
Dev Dependencies (2)
Dependents (339)

Copyright 2014 - 2016 © taobao.org |