Skip to content

Instantly share code, notes, and snippets.

@niedbalski
Created October 1, 2012 19:13
Show Gist options
  • Save niedbalski/3813794 to your computer and use it in GitHub Desktop.
Save niedbalski/3813794 to your computer and use it in GitHub Desktop.
Object extend
Object.prototype.extend = function(source, destination) {
for(var property in source) {
destination[property] = source[property]
}
return destination;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment