Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@total-order/primitive

total-order2kAGPL-3.01.0.1

Comparison of primitive values for JavaScript

bigint, compare, number, order, primitive, string, total, type

readme

: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 ...

License Version Tests Dependencies Dev dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size