type-alias
Source: comparators.ts ↗
IComparator
Function that can be used to sort collections. The semantics are the same as the first argument to Array#sort function.
export type IComparator<T> = (a: T, b: T) => number;
Function that can be used to sort collections. The semantics are the same as the first argument to Array#sort function.
export type IComparator<T> = (a: T, b: T) => number;