awesome-compose/nginx-nodejs-redis/web/node_modules/merge-descriptors
ajeetraina 71b622220f modified configuration file for web
Signed-off-by: ajeetraina <ajeetraina@gmail.com>
2022-03-13 13:09:07 +05:30
..
HISTORY.md modified configuration file for web 2022-03-13 13:09:07 +05:30
index.js modified configuration file for web 2022-03-13 13:09:07 +05:30
LICENSE modified configuration file for web 2022-03-13 13:09:07 +05:30
package.json modified configuration file for web 2022-03-13 13:09:07 +05:30
README.md modified configuration file for web 2022-03-13 13:09:07 +05:30

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