Skip to content

Instantly share code, notes, and snippets.

@FesterCluck
Created April 7, 2014 09:33
Show Gist options
  • Save FesterCluck/10017298 to your computer and use it in GitHub Desktop.
Save FesterCluck/10017298 to your computer and use it in GitHub Desktop.
Angular.extend
function extend(dst) {
var h = dst.$$hashKey;
forEach(arguments, function(obj){
if (obj !== dst) {
forEach(obj, function(value, key){
dst[key] = value;
});
}
});
setHashKey(dst,h);
return dst;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment