A Type Guard to check if given value type is equal to "object"
If you don't want to allow null, which is also considered a object type, use isRecord or isObject instead.
isRecord
isObject
import { isTypeObject, isNull } from 'type-guard-helpers'const test = {} as unknown;if (isTypeObject(test) && test !== null) { test[1]; test.test;}// equivalent to `isObject`
Generated using TypeDoc
A Type Guard to check if given value type is equal to "object"
If you don't want to allow null, which is also considered a object type, use
isRecord
orisObject
instead.Example