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