From 1ace603b877b9d65c043c6245f6ec41f93ffefa2 Mon Sep 17 00:00:00 2001 From: hotoo Date: Wed, 21 May 2014 11:59:18 +0800 Subject: [PATCH] Update example code for Object.assign() --- docs/object.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/object.md b/docs/object.md index a0fa73f..5854eb9 100644 --- a/docs/object.md +++ b/docs/object.md @@ -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);