total-order/reversed

View on GitHub
README.md

Summary

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

Comparison function reversion for JavaScript.
See [docs](https://total-order.github.io/reversed/index.html).

```js
import {increasing} from '@total-order/primitive';
import {reversed} from '@total-order/reversed';

let decreasing = reversed(increasing);
```

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

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