Function: ascNumber()
ascNumber(
x
:string
|number
|bigint
,y
:string
|number
|bigint
):LexicographicComparison
Compares two elements using the default comparison algorithm.
Parameters
Parameter | Type | Description |
---|---|---|
x | string | number | bigint | The first element to compare. |
y | string | number | bigint | The second element to compare. |
Returns
The numeric comparison of the two elements.
Defined in
projects/utilities/packages/iterator-utilities/src/lib/shared/comparators.ts:42