Last active
March 21, 2019 10:38
-
-
Save joelnet/dd2de9e1544758b7bcf08648ea2bcbd9 to your computer and use it in GitHub Desktop.
Revisions
-
joelnet revised this gist
Mar 17, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ const partial = { id: 100, name: 'Howard Moon' } const user = { ...partial, id: 100, password: 'Password!' } user //=> { id: 100, name: 'Howard Moon', password: 'Password!' } -
joelnet created this gist
Mar 1, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ const partial = { id: 100, name: 'Howard Moon' } const user = { ...partial, ...{ id: 100, password: 'Password!' } } user //=> { id: 100, name: 'Howard Moon', password: 'Password!' }