UNPKG

tiny-types

Version:

A tiny library that brings Tiny Types to JavaScript and TypeScript

11 lines (10 loc) 297 B
/** * @access private */ export function isObject(value: unknown): value is object { return value !== null && value !== undefined && typeof value === 'object' && Array.isArray(value) === false && Object.prototype.toString.call(value) === '[object Object]'; }