Created
August 11, 2017 09:10
-
-
Save iamgoangle/83f911d0ef8c555ca050f65c2df72774 to your computer and use it in GitHub Desktop.
Merge object
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
| const profile = { | |
| name: 'Teerapong Singthong' | |
| }; | |
| const position = { | |
| job: 'Business Maker' | |
| }; | |
| const summary = {...profile, ...position}; | |
| // Result | |
| /* | |
| { | |
| name: "Teerapong Singthong", | |
| job: "Business Maker" | |
| } | |
| */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment