Created
March 24, 2018 21:24
-
-
Save r37r0m0d3l/72c8d62f193ddeb5d4325a47541d8b76 to your computer and use it in GitHub Desktop.
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 characters
| let object1 = { a:1, b:2,c:3 } | |
| let object2 = { b:30, c:40, d:50} | |
| let merged = {…object1, …object2} //spread and re-add into merged | |
| console.log(merged) // {a:1, b:30, c:40, d:50} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment