UNPKG

topkat-utils

Version:

A comprehensive collection of TypeScript/JavaScript utility functions for common programming tasks. Includes validation, object manipulation, date handling, string formatting, and more. Zero dependencies, fully typed, and optimized for performance.

3 lines (2 loc) 191 B
/** test if object but not array and not null (null is an object in Js) */ export function isObject(o: any): boolean { return o instanceof Object && [Object, Error].includes(o.constructor) }