Sort an array with Nullish values last
const array = ["b", null, "a"];array.sort(nullishLast(stringComparator));console.log(array); // ["a", "b", null]
a Comparator
the Comparator value type
Generated using TypeDoc
Example
Sort an array with Nullish values last
Returns
a Comparator