Less than 1 minute
Home > @hz-9/algorithm > defaultCompare
defaultCompare() function
Compare the relationship between a and b.
比较 a 和 b 的大小关系。
Signature:
defaultCompare: <T>(a: T, b: T) => CompareParameters
Parameter | Type | Description |
|---|---|---|
a | T | The value to compare a |
b | T | The value to compare b |
Returns:
The result of the comparison