mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 11:57:49 +00:00
switching to canonical isNaN
This commit is contained in:
@@ -616,7 +616,7 @@
|
|||||||
// Is the given value NaN -- this one is interesting. NaN != NaN, and
|
// Is the given value NaN -- this one is interesting. NaN != NaN, and
|
||||||
// isNaN(undefined) == true, so we make sure it's a number first.
|
// isNaN(undefined) == true, so we make sure it's a number first.
|
||||||
_.isNaN = function(obj) {
|
_.isNaN = function(obj) {
|
||||||
return toString.call(obj) === '[object Number]' && isNaN(obj);
|
return obj !== obj;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Is a given value a boolean?
|
// Is a given value a boolean?
|
||||||
|
|||||||
Reference in New Issue
Block a user