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.
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>