Created
December 15, 2012 14:36
-
-
Save tomoh1r/4295691 to your computer and use it in GitHub Desktop.
プロトタイプに何が設定されているか確認
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
'use strict'; | |
var Hoge = Object.create(null); | |
var h = Object.create(Hoge); | |
console.log(Hoge == Object.getPrototypeOf(h)); | |
// => true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment