✅ – ekomS – 23-35 Dec 21
Howdy all. I've got this sort function which prioritizes truthy values in an array:
Is there a better way to coerce the condition to its relevant value?
e.g. a && b -> 0, a -> -1, b -> 1
Is there a better way to coerce the condition to its relevant value?
e.g. a && b -> 0, a -> -1, b -> 1
