This package is deprecated. Please use a combination of
Math.sign
: Forsign
.@total-order/primitive
: To compare numbers, strings, and bigints.@total-order/lex
: For all lexicographical ordering functions.@total-order/key
: Forkey
(wasfn
),len
, andprop
(wasattr
).@total-order/reversed
: Forreversed
(wasreverse
).
New functionality has been made available as well:
@total-order/date
: To compareDate
objects.@total-order/iter
: To compareIterable
orIterator
objects lexicographically.total-order
: To compare arbitrary JavaScript values.