isNanValue
Check if the input parameter is a NaN or a Number object with a NaN value.
Added in v0.0.1
Usage
ts
import { isNanValue } from 'parsnip-kit'
isNanValue(123) // false
isNanValue('123') // false
isNanValue(Infinity) // false
isNanValue(NaN) // true
isNanValue(new Number(NaN)) // trueAPI
Arguments
| Arg | Type | Optional | Default | Description |
|---|---|---|---|---|
arg | any | false | undefined | Parameters for check |
Returns
| Type |
|---|
boolean |