UNPKG

is-what

Version:

JS type check (TypeScript supported) functions like `isPlainObject() isArray()` etc. A simple & small integration.

7 lines (6 loc) 179 B
/** * Returns whether the payload is a number (but not NaN) * * This will return `false` for `NaN`!! */ export declare function isNumber(payload: unknown): payload is number;