@tempots/std

isObject() function

Checks if the given value is an object.

Signature:

isObject: (obj: unknown) => obj is Record<IndexKey, unknown>

Parameters

Parameter

Type

Description

obj

unknown

The value to check.

Returns: obj is Record<IndexKey, unknown>

true if the value is an object, false otherwise.