UNPKG

is-what

Version:

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

7 lines (6 loc) 258 B
import { PlainObject } from './isPlainObject.js'; /** * Returns whether the payload is a plain JavaScript object (excluding special classes or objects * with other prototypes) */ export declare function isObject(payload: unknown): payload is PlainObject;