Merge pull request #344 from michaelficarra/patch-1

isNaN comment
This commit is contained in:
Jeremy Ashkenas
2011-10-20 14:15:08 -07:00

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;
};