Compares two values and puts true first.
true
trueLast
// use compareBy to broaden to truthy and falsy valuesconst truthyFirst = compareBy(x => !!x, trueFirst);
first value
second value
Generated using TypeDoc
Compares two values and puts
true
first.See
trueLast
Example