zhouxianguang 4ff8c8d55d submit code | %!s(int64=6) %!d(string=hai) anos | |
---|---|---|
.. | ||
HISTORY.md | %!s(int64=6) %!d(string=hai) anos | |
LICENSE | %!s(int64=6) %!d(string=hai) anos | |
README.md | %!s(int64=6) %!d(string=hai) anos | |
index.js | %!s(int64=6) %!d(string=hai) anos | |
package.json | %!s(int64=6) %!d(string=hai) anos |
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.