13 lines
197 B
JavaScript
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) |