Skip to content

Instantly share code, notes, and snippets.

@cmstead
Created May 3, 2016 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmstead/0c3acdae372380baf4c3e703069fd66e to your computer and use it in GitHub Desktop.
Save cmstead/0c3acdae372380baf4c3e703069fd66e to your computer and use it in GitHub Desktop.
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