Last active
October 3, 2016 13:48
-
-
Save jacobjuul/866c6452dde87ae69e988e80e3100a43 to your computer and use it in GitHub Desktop.
This file contains 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 characters
// Object assign | |
const someObject = { | |
prop1: '123', | |
prop2: '1234, | |
}; | |
const newObj = Object.assign({}, someObject, { prop1: '1337' }); | |
const newObj2 = { ...someObject, prop1: '1337' }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment