Less than 1 minute
Home > @hz-9/algorithm > defaultEquals
defaultEquals() function
Check if a and b are equal.
判断 a 和 b 是否相等。
Signature:
defaultEquals: <T>(a?: T | undefined, b?: T | undefined) => booleanParameters
Parameter | Type | Description |
|---|---|---|
a | T | undefined | (Optional) The value to compare a |
b | T | undefined | (Optional) The value to compare b |
Returns:
boolean
The result of the comparison