Skip to content

Instantly share code, notes, and snippets.

Avatar
😼
💻🐈

Marcel Müller TheNeikos

😼
💻🐈
View GitHub Profile
@TheNeikos
TheNeikos / gist:8197609
Created Dec 31, 2013
A simple way of merging Javascript Objects made of simple types.
View gist:8197609
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
You can’t perform that action at this time.