javascript check if is nan

JavaScript
function isNaN(x) {
   return x !== x;
};
isNaN(NaN);//true
Source

Also in JavaScript: