Created
February 11, 2016 17:37
-
-
Save codemilli/d68dd22d6681e9bb2703 to your computer and use it in GitHub Desktop.
pure function 을 이용한 state 값 대체
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
var state = { | |
name: 'jooyoung Moon' | |
}; | |
var reduce = function reduce(state) { | |
return _.extends({}, state, { | |
name: 'hckrmoon' | |
}); | |
}; | |
state = reduce(state); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment