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