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 Value | Description |
---|---|
True/False | Returns true if both objects have the same properties and values, and false otherwise. |
Sample
Example | Result | Description |
---|---|---|
isEqual('Alice', 'Alice') | true | This function compares the two texts, 'Alice' and 'Alice', and returns true because they are equivalent. |
isEqual('Alice', 'Bob') | false | This function compares the two texts, 'Alice' and 'Bob', and returns false because they are not equivalent. |
To view all the Language functions, click here.
See Also
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article