tree: 11b4225a34960e9679765a7752e26aa54191194d [path history] [tgz]
  1. HISTORY.md
  2. index.js
  3. LICENSE
  4. package.json
  5. README.md
node_modules/merge-descriptors/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.

merge(destination, source, false)

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

License

MIT