UNPKG

is-what

Version:

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

7 lines (6 loc) 246 B
/** * Returns whether the payload is a primitive type (eg. Boolean | Null | Undefined | Number | String * * | Symbol) */ export declare function isPrimitive(payload: unknown): payload is boolean | null | undefined | number | string | symbol;