New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@hexlet/pairs-data

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@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
Source
npmnpm
Version
2.0.0
Version published
Maintainers
3
Created
Source

js-pairs-data

github action status

Install

npm install @hexlet/pairs-data

Usage example

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

Hexlet Ltd. logo

This repository is created and maintained by the team and the community of Hexlet, an educational project. Read more about Hexlet.

See most active contributors on hexlet-friends.

FAQs

Package last updated on 10 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts