Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A simple way of merging Javascript Objects made of simple types.
simpleDeepMergeObjects = ->
ret = {}
for i, obj of arguments
for k, v of obj
if 'Object' is typeof v
ret[k] = simpleDeepMergeObjects ret[k], v
else
ret[k] = v
return ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.