@tempots/std
looseEqual() function
Checks if two values are loosely equal.
Signature:
looseEqual: (a: T, b: T) => boolean
Parameters
Parameter |
Type |
Description |
---|---|---|
a |
T |
The first value to compare. |
b |
T |
The second value to compare. |
Returns: boolean
true
if the values are loosely equal, false
otherwise.