Wraps a comparator to handle null and undefined values.
Null and undefined values are treated as greater than any other value and equal to each other.
Non-nullish values are compared using the provided comparator.
Type Parameters
V
The type of values to compare (may include null/undefined)
Wraps a comparator to handle null and undefined values.
Null and undefined values are treated as greater than any other value and equal to each other. Non-nullish values are compared using the provided comparator.