Here's a function which checks whether input is a NaN:
function myIsNaN(value) {
return value !== value;
}
myIsNaN({}) --> outputs false.
Why false if:
{} !== {} --> true ???
myIsNaN([]) --> outputs false.
Why false if:
[] !== [] --> true ???