|
|
|
|
|
by jefftk
1497 days ago
|
|
Regular isNaN is very tricky, and almost never what you want: it first coerces its input to a Number, and then checks if that is NaN: isNaN Number.isNaN
----- ------------
{} true false
[true] true false
undefined true false
"{}" true false
|
|