merge-descriptors (1.0.1)

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

Installation

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

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.

merge(destination, source, false)

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

License

MIT

Dependencies

Development Dependencies

ID Version
istanbul 0.4.1
mocha 1.21.5
Details
npm
2026-02-24 14:01:17 +00:00
0
Jonathan Ong
MIT
2.3 KiB
Assets (1)
Versions (2) View all
1.0.3 2026-02-24
1.0.1 2026-02-24