Created
May 3, 2016 20:07
-
-
Save cmstead/0c3acdae372380baf4c3e703069fd66e 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
function simpleMerge (baseObj, extensionObj){ | |
return Object.keys(extensionObj).reduce(function (baseObj, propertyKey) { | |
baseObj[propertyKey] = extensionObj[propertyKey]; | |
return baseObj; | |
}, baseObj); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment