Created
October 28, 2014 04:53
-
-
Save rochnyak-d-i/8502b3b197d16789c3d6 to your computer and use it in GitHub Desktop.
JS создание объекта
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
Object.create || Object.create = function object(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