* Checks if `value` is `NaN`. * * **Note:** This method is based on * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for * `undefined` and other non-number values. * * @static * @memberOf _ * @since 0.1.0 *
(value)
| 18252 | * // => false |
| 18253 | */ |
| 18254 | function isNaN(value) { |
| 18255 | // An `NaN` primitive is the only value that is not equal to itself. |
| 18256 | // Perform the `toStringTag` check first to avoid errors with some |
| 18257 | // ActiveX objects in IE. |
| 18258 | return isNumber(value) && value != +value; |
| 18259 | } |
| 18260 | |
| 18261 | module.exports = isNaN; |
| 18262 |
no test coverage detected
searching dependent graphs…