merge-descriptors (1.0.3)

Published 2026-02-24 14:01:18 +00:00 by atheaadmin

Installation

registry=
npm install merge-descriptors@1.0.3
"merge-descriptors": "1.0.3"

About this package

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. The return value is the destination object.

merge(destination, source, false)

Defines source's descriptors on destination if destination does not have a descriptor by the same name. The return value is the destination object.

License

MIT

Dependencies

Development Dependencies

ID Version
eslint 5.9.0
eslint-config-standard 12.0.0
eslint-plugin-import 2.14.0
eslint-plugin-node 7.0.1
eslint-plugin-promise 4.0.1
eslint-plugin-standard 4.0.0
mocha 5.2.0
nyc 13.1.0
Details
npm
2026-02-24 14:01:18 +00:00
0
Jonathan Ong
MIT
latest
2.3 KiB
Assets (1)
Versions (2) View all
1.0.3 2026-02-24
1.0.1 2026-02-24