merge-descriptors
Merge objects using descriptors
Last updated 9 years ago by dougwilson .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm 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 (9 years ago)

4 Versions

  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           10 years ago
  • 0.0.2                                ...           11 years ago
  • 0.0.1                                ...           11 years ago
Downloads
Today 0
This Week 0
This Month 12
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)

Copyright 2013 - present © cnpmjs.org | Home |