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.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”compare
Section titled “compare”Comparator<T>
Returns
Section titled “Returns”Comparator<T | null | undefined>