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