1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-25 03:02:21 +00:00

Update example code for Object.assign()

This commit is contained in:
hotoo 2014-05-21 11:59:18 +08:00
parent 4150797281
commit 1ace603b87

View File

@ -36,7 +36,7 @@ target // {a:1, b:2, c:3}
var target = { a: 1, b: 1 };
var source1 = { b: 2 };
var source1 = { b: 2, c: 2 };
var source2 = { c: 3 };
Object.assign(target, source1, source2);