Skip to content

Instantly share code, notes, and snippets.

@Nek
Created December 17, 2014 21:36
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 Nek/a2293cf53f457230382f to your computer and use it in GitHub Desktop.
Save Nek/a2293cf53f457230382f to your computer and use it in GitHub Desktop.
#js #polyfill
// http://stackoverflow.com/a/10142212/195895
if (typeof Object.create !== 'function') {
Object.create = function (o) {
function F() {}
F.prototype = o;
return new F();
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment