等価演算子(==)と厳密等価演算子(===)

(式と演算子)

y x == === Object.is()
undefined undefined TRUE TRUE TRUE
null null TRUE TRUE TRUE
TRUE TRUE TRUE TRUE TRUE
FALSE FALSE TRUE TRUE TRUE
foo’ foo’ TRUE TRUE TRUE
0 0 TRUE TRUE TRUE
+0 0 TRUE TRUE FALSE
0 FALSE TRUE FALSE FALSE
FALSE TRUE FALSE FALSE
0 TRUE FALSE FALSE
0′ 0 TRUE FALSE FALSE
17′ 17 TRUE FALSE FALSE
[1, 2] 1,2′ TRUE FALSE FALSE
new String(‘foo’) foo’ TRUE FALSE FALSE
null undefined TRUE FALSE FALSE
null FALSE FALSE FALSE FALSE
undefined FALSE FALSE FALSE FALSE
{foo: ‘bar’} {foo: ‘bar’} FALSE FALSE FALSE
new String(‘foo’) new String(‘foo’) FALSE FALSE FALSE
0 null FALSE FALSE FALSE
0 NaN FALSE FALSE FALSE
foo’ NaN FALSE FALSE FALSE
NaN NaN FALSE FALSE TRUE
inserted by FC2 system