Skip to content

createNullishFirstComparator

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

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

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

T

Comparator<T>

Comparator<T | null | undefined>