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: For
key
(wasfn
),len
, andprop
(wasattr
). - @total-order/reversed: For
reversed
(wasreverse
).
New functionality has been made available as well:
- @total-order/date: To compare
Date
objects. - @total-order/iter: To compare
Iterable
orIterator
objects lexicographically. - total-order: To compare arbitrary JavaScript values.