Underscore's isNaN method
// Is the given value `NaN`? `NaN` happens to be the only value in JavaScript
// that does not equal itself.
_.isNaN = function(obj) {
return obj !== obj;
};
See _.isNaN
on github.
It’s also worth mentioning Underscore’s annotated source.