| .. | |||
| HISTORY.md | 1 year ago | ||
| LICENSE | 1 year ago | ||
| README.md | 1 year ago | ||
| index.js | 1 year ago | ||
| package.json | 1 year ago | ||
Merge objects using descriptors.
var thing = {
get name() {
return 'jon'
}
}
var animal = {
}
merge(animal, thing)
animal.name === 'jon'
Redefines destination's descriptors with source's. The return value is thedestination object.
Defines source's descriptors on destination if destination does not have
a descriptor by the same name. The return value is the destination object.