UNPKG

292 BTypeScriptView Raw
1export type PlainObject = {
2 [key in string | number | symbol]: unknown;
3};
4/**
5 * Returns whether the payload is a plain JavaScript object (excluding special classes or objects
6 * with other prototypes)
7 */
8export declare function isPlainObject(payload: unknown): payload is PlainObject;