samples/dapr-distributed-calendar/node_modules/merge-descriptors
Jayesh Sharma 81ea7dc01e
add new sample (#41)
* add project description in table

* add project files

* add table
2021-01-11 12:16:14 -08:00
..
HISTORY.md add new sample (#41) 2021-01-11 12:16:14 -08:00
LICENSE add new sample (#41) 2021-01-11 12:16:14 -08:00
README.md add new sample (#41) 2021-01-11 12:16:14 -08:00
index.js add new sample (#41) 2021-01-11 12:16:14 -08:00
package.json add new sample (#41) 2021-01-11 12:16:14 -08:00

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