UNPKG

is-what

Version:

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

8 lines (7 loc) 241 B
/** * Returns whether the payload is a an empty object (excluding special classes or objects with other * prototypes) */ export declare function isEmptyObject(payload: unknown): payload is { [K in string | symbol | number]: never; };