updating _.isNaN comment doc.

This commit is contained in:
Jeremy Ashkenas
2010-12-20 16:52:24 -05:00
parent 2dff99d518
commit 422d35438c

View File

@@ -613,8 +613,8 @@
return !!(obj === 0 || (obj && obj.toExponential && obj.toFixed));
};
// Is the given value NaN -- this one is interesting. NaN != NaN, and
// isNaN(undefined) == true, so we make sure it's a number first.
// 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;
};