- Source:
Methods
(static) equals(v1, v2, strict) → {boolean}
- Source:
Equality checking for arbitrary JS data, including nested objects.
As JS can do coerced equality checking, and because in rare cases that's essential, the third argument is a "strict" flag that defaults to true, but can be explicitly set to "false" to perform coercive equality checking.
Parameters:
Name | Type | Description |
---|---|---|
v1 |
* | One of the two things part of this equality check. |
v2 |
* | The other thing that's part of this equality check. |
strict |
boolean | True to check with strict type equality, false for coercive equality |
Returns:
True if v1 equals v2, false if not.
- Type
- boolean