:orange: @total-order/primitive
Comparison of primitive values for JavaScript. See docs.
import {range} from '@iterable-iterator/range';
import {decreasing} from '@total-order/primitive';
Array.from(range(12)).sort(decreasing); // 11 10 9 8 7 ...
Comparison of primitive values for JavaScript. See docs.
import {range} from '@iterable-iterator/range';
import {decreasing} from '@total-order/primitive';
Array.from(range(12)).sort(decreasing); // 11 10 9 8 7 ...