ブール型強制を使用する場合、次の値は「偽」と見なされます。
false
0
""
null
undefined
NaN
0/0
document.all
他のすべては「真実」とみなされます。
¹ECMAScript仕様の故意の違反