Skip to content

Function: isEqual()

ts
function isEqual(value1: any, value2: any): boolean;

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

Compare two values for deep equality.

Parameters

ParameterTypeDescription
value1anyThe first value to compare.
value2anyThe second value to compare.

Returns

boolean

true if the values are deeply equal, false otherwise.

Example

ts
isEqual({ drink: 'mocha' }, { drink: 'mocha' }); // true
isEqual([1, 2, 3], [1, 2]); // false

Matterway Assistant SDK Documentation