Skip to content

Instantly share code, notes, and snippets.

@glowcoil
Created November 19, 2014 04:48
Show Gist options
  • Save glowcoil/74eabdda610048a1e7bb to your computer and use it in GitHub Desktop.
Save glowcoil/74eabdda610048a1e7bb to your computer and use it in GitHub Desktop.
function extend(parent, child) {
child.prototype = Object.create(parent.prototype);
child.prototype.constructor = child;
child.prototype.super = parent;
return child;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment