isNaN comment

This commit is contained in:
Michael Ficarra
2011-10-20 18:08:08 -03:00
parent 00cd88cfa6
commit 4d6e2c6ed4

View File

@@ -774,9 +774,9 @@
return !!(obj === 0 || (obj && obj.toExponential && obj.toFixed));
};
// Is the given value `NaN`? `NaN` happens to be the only value in JavaScript
// that does not equal itself.
// Is the given value `NaN`?
_.isNaN = function(obj) {
// `NaN` is the only value for which `===` is not reflexive.
return obj !== obj;
};