UNPKG

is-what

Version:

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

9 lines (8 loc) 255 B
import { getType } from './getType.js'; /** * Returns whether the payload is an any kind of object (including special classes or objects with * different prototypes) */ export function isAnyObject(payload) { return getType(payload) === 'Object'; }