# @hexlet/pairs-data

> [![github action status](https://github.com/hexlet-components/js-pairs-data/workflows/Node%20CI/badge.svg)](https://github.com/hexlet-components/js-pairs-data/actions)

Latest version **2.0.0** (published 2025-12-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install @hexlet/pairs-data
pnpm add @hexlet/pairs-data
yarn add @hexlet/pairs-data
bun add @hexlet/pairs-data
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2025-12-10 |
| First published | 2019-06-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22.0 |
| Dependencies | 1 |
| Unpacked size | 24 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Kirill Mokevnin |
| Maintainers | feycot, mokevnin, corsicanec82 |

## Links

- npm: https://www.npmjs.com/package/@hexlet/pairs-data
- Repository: https://github.com/hexlet-components/js-pairs-data
- Homepage: https://github.com/hexlet-components/js-pairs-data#readme
- Issues: https://github.com/hexlet-components/js-pairs-data/issues
- npm.io page: https://npm.io/package/@hexlet/pairs-data

## Dependencies (1)

- [@hexlet/pairs](https://npm.io/package/@hexlet/pairs.md) ^2.0.1

## Recent versions

- 2.0.0 (latest) — 2025-12-10
- 1.1.1 — 2021-01-19
- 1.1.0 — 2020-09-15
- 1.0.11 — 2020-05-24
- 1.0.10 — 2020-03-03
- 1.0.9 — 2019-06-19

## README

# js-pairs-data

[![github action status](https://github.com/hexlet-components/js-pairs-data/workflows/Node%20CI/badge.svg)](https://github.com/hexlet-components/js-pairs-data/actions)

## Install

```sh
npm install @hexlet/pairs-data
```

## Usage example

```javascript
import {
  l, isList, toString, cons, filter, head, tail
} from '@hexlet/pairs-data';

const numbers = l(3, 4, 5, 6, 7);
toString(numbers); // (3, 4, 5, 6, 7)

const first = head(numbers); // 3
const rest = tail(numbers);
toString(rest); // (4, 5, 6, 7)

isList(first); // false
isList(rest); // true

const newList = cons(8, rest);
toString(newList); // (8, 4, 5, 6, 7)

const filtered = filter((el) => el < 7, newList);
isList(filtered); // true
toString(filtered); // (4, 5, 6)
```

For more information, see the [Full Documentation](https://github.com/hexlet-components/js-pairs-data/tree/master/docs)

---

[![Hexlet Ltd. logo](https://raw.githubusercontent.com/Hexlet/assets/master/images/hexlet_logo128.png)](https://hexlet.io?utm_source=github&utm_medium=link&utm_campaign=js-pairs-data)

This repository is created and maintained by the team and the community of Hexlet, an educational project. [Read more about Hexlet](https://hexlet.io?utm_source=github&utm_medium=link&utm_campaign=js-pairs-data).

See most active contributors on [hexlet-friends](https://friends.hexlet.io/).

---
_Source: https://npm.io/package/@hexlet/pairs-data · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
