Skip to content

Function: isObject()

ts
function isObject(value: any): value is Record<string, any>;

Defined in: src/utils/isObject.ts:14

Check if a value is an object.

Parameters

ParameterTypeDescription
valueanyThe value to check.

Returns

value is Record<string, any>

true if the value is a non-null object, false otherwise.

Example

ts
isObject({ name: 'latte' }); // true
isObject(null); // false
isObject('hello'); // false

Matterway Assistant SDK Documentation