UNPKG

is-what

Version:

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

9 lines (8 loc) 292 B
export type PlainObject = { [key in string | number | symbol]: unknown; }; /** * Returns whether the payload is a plain JavaScript object (excluding special classes or objects * with other prototypes) */ export declare function isPlainObject(payload: unknown): payload is PlainObject;