Created
January 16, 2017 07:54
-
-
Save rohit012/9beb54607708958a33509e6f4d8e6ff0 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
var state1 = { | |
val1 : 'abc', | |
val2: 'xyz' | |
}; | |
var state2 = { | |
val2 : 'mno', | |
val3: 'xyz' | |
}; | |
var state3 = { ...state1, ...state2}; //{val1: 'abc', val2: 'mno', val3: 'xyz'} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment