Last active
May 15, 2020 13:16
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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