Skip to content

createNullishLastComparator

createNullishLastComparator<T>(compare): Comparator<T | null | undefined>

Defined in: packages/core/src/function/compare/create-nullish-comparator.ts:25

Widens compare to accept null and undefined, ordering both after every other value and treating them as equivalent to each other.

T

Comparator<T>

Comparator<T | null | undefined>