isEqual

Modified on Mon, 21 Aug 2023

Description

Use this function to perform a deep comparison between two values to determine if they are equivalent.

Syntax

isEqual(text1, text2)

Returns

Return ValueDescription
True/FalseReturns true if both objects have the same properties and values, and false otherwise.

Sample

ExampleResultDescription
isEqual('Alice', 'Alice')trueThis function compares the two texts, 'Alice' and 'Alice', and returns true because they are equivalent.
isEqual('Alice', 'Bob')falseThis function compares the two texts, 'Alice' and 'Bob', and returns false because they are not equivalent.

To view all the Language functions, click here.