2020-10-11 23:25:04 +08:00

13 lines
197 B
JavaScript

var o = {
foo: 42,
[Symbol("bar")]: "hello world",
baz: true
}
var b = {
foo: 43,
[Symbol("bar")]: "hello world",
baz: false
}
console.log(a[Symbol("bar")])
a = Object.assign({}, o, b)