Skip to content

Instantly share code, notes, and snippets.

@mmckegg
Created October 13, 2013 02:01
Show Gist options
  • Save mmckegg/6957214 to your computer and use it in GitHub Desktop.
Save mmckegg/6957214 to your computer and use it in GitHub Desktop.
function mergeClone(){
var result = {}
for (var i=0;i<arguments.length;i++){
var obj = arguments[i]
if (obj){
Object.keys(obj).forEach(function(key){
result[key] = obj[key]
})
}
}
return result
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment