Skip to content

Instantly share code, notes, and snippets.

@markgoodyear
Created November 15, 2014 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markgoodyear/41076c44cb789da6c4de to your computer and use it in GitHub Desktop.
Save markgoodyear/41076c44cb789da6c4de to your computer and use it in GitHub Desktop.
function extend (target, source) {
var a = Object.create(target);
Object.keys(source).map(function (prop) {
a[prop] = source[prop];
});
return a;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment