Skip to content

Instantly share code, notes, and snippets.

@jessycormier
Last active May 15, 2020 13:16
Show Gist options
  • Save jessycormier/3f1efb8db785cf02f6ec to your computer and use it in GitHub Desktop.
Save jessycormier/3f1efb8db785cf02f6ec to your computer and use it in GitHub Desktop.
[Object Create for IE] how to define an object in IE10 #InternetExplorer #IE10
// For <IE10 Support of object.create
if (Object.create === undefined) {
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