mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
@@ -774,9 +774,9 @@
|
|||||||
return !!(obj === 0 || (obj && obj.toExponential && obj.toFixed));
|
return !!(obj === 0 || (obj && obj.toExponential && obj.toFixed));
|
||||||
};
|
};
|
||||||
|
|
||||||
// Is the given value `NaN`? `NaN` happens to be the only value in JavaScript
|
// Is the given value `NaN`?
|
||||||
// that does not equal itself.
|
|
||||||
_.isNaN = function(obj) {
|
_.isNaN = function(obj) {
|
||||||
|
// `NaN` is the only value for which `===` is not reflexive.
|
||||||
return obj !== obj;
|
return obj !== obj;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user