total-order/primitive

View on GitHub
README.md

Summary

Maintainability
Test Coverage
:orange: [@total-order/primitive](https://total-order.github.io/primitive)
==

Comparison of primitive values for JavaScript.
See [docs](https://total-order.github.io/primitive/index.html).

```js
import {range} from '@iterable-iterator/range';
import {decreasing} from '@total-order/primitive';
Array.from(range(12)).sort(decreasing); // 11 10 9 8 7 ...
```

[![License](https://img.shields.io/github/license/total-order/primitive.svg)](https://raw.githubusercontent.com/total-order/primitive/main/LICENSE)
[![Version](https://img.shields.io/npm/v/@total-order/primitive.svg)](https://www.npmjs.org/package/@total-order/primitive)
[![Tests](https://img.shields.io/github/actions/workflow/status/total-order/primitive/ci.yml?branch=main&event=push&label=tests)](https://github.com/total-order/primitive/actions/workflows/ci.yml?query=branch:main)
[![Dependencies](https://img.shields.io/librariesio/github/total-order/primitive.svg)](https://github.com/total-order/primitive/network/dependencies)
[![GitHub issues](https://img.shields.io/github/issues/total-order/primitive.svg)](https://github.com/total-order/primitive/issues)
[![Downloads](https://img.shields.io/npm/dm/@total-order/primitive.svg)](https://www.npmjs.org/package/@total-order/primitive)

[![Code issues](https://img.shields.io/codeclimate/issues/total-order/primitive.svg)](https://codeclimate.com/github/total-order/primitive/issues)
[![Code maintainability](https://img.shields.io/codeclimate/maintainability/total-order/primitive.svg)](https://codeclimate.com/github/total-order/primitive/trends/churn)
[![Code coverage (cov)](https://img.shields.io/codecov/c/gh/total-order/primitive/main.svg)](https://codecov.io/gh/total-order/primitive)
[![Code technical debt](https://img.shields.io/codeclimate/tech-debt/total-order/primitive.svg)](https://codeclimate.com/github/total-order/primitive/trends/technical_debt)
[![Documentation](https://total-order.github.io/primitive/badge.svg)](https://total-order.github.io/primitive/source.html)
[![Package size](https://img.shields.io/bundlephobia/minzip/@total-order/primitive)](https://bundlephobia.com/result?p=@total-order/primitive)