Skip to main content

Function: ascNumber()

ascNumber(x: string | number | bigint, y: string | number | bigint): LexicographicComparison

Compares two elements using the default comparison algorithm.

Parameters

ParameterTypeDescription
xstring | number | bigintThe first element to compare.
ystring | number | bigintThe second element to compare.

Returns

LexicographicComparison

The numeric comparison of the two elements.

Defined in

projects/utilities/packages/iterator-utilities/src/lib/shared/comparators.ts:42