Created
June 20, 2016 00:30
-
-
Save taisyo7333/0ecdd0c5242be0be135e46fde73bb231 to your computer and use it in GitHub Desktop.
JavaScript Boolean
This file contains hidden or 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
| JavaScript のBoolean は下記のように変換される。言語によって異なるため、非常に重要なポイントだと思う。 | |
| 0,-0,null,false,NaN,undefined, '' (空文字列) は false に変換される。 | |
| それ以外は、 true になる。 | |
| 出典 | |
| 開眼!JavaScript | |
| - 言語仕様から学ぶJavaScript の本質 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment