chrisdrakeford 9c87c1307d first commit | 3 gadi atpakaļ | |
---|---|---|
.. | ||
HISTORY.md | 3 gadi atpakaļ | |
LICENSE | 3 gadi atpakaļ | |
README.md | 3 gadi atpakaļ | |
index.js | 3 gadi atpakaļ | |
package.json | 3 gadi atpakaļ |
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.
Defines source
's descriptors on destination
if destination
does not have
a descriptor by the same name.