mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +00:00
updating _.isNaN comment doc.
This commit is contained in:
@@ -613,8 +613,8 @@
|
|||||||
return !!(obj === 0 || (obj && obj.toExponential && obj.toFixed));
|
return !!(obj === 0 || (obj && obj.toExponential && obj.toFixed));
|
||||||
};
|
};
|
||||||
|
|
||||||
// Is the given value NaN -- this one is interesting. NaN != NaN, and
|
// Is the given value `NaN`? `NaN` happens to be the only value in JavaScript
|
||||||
// isNaN(undefined) == true, so we make sure it's a number first.
|
// that does not equal itself.
|
||||||
_.isNaN = function(obj) {
|
_.isNaN = function(obj) {
|
||||||
return obj !== obj;
|
return obj !== obj;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user