Repository
Current version released
5 months ago
Versions
- v2.30.0Latest
- v2.29.0
- v2.28.0
- v2.27.2
- v2.27.1
- v2.27.0
- v2.26.1
- v2.26.0
- v2.25.0
- v2.24.1
- v2.24.0
- v2.23.3
- v2.23.2
- v2.23.1
- v2.23.0
- v2.22.6
- v2.22.5
- v2.22.4
- v2.22.3
- v2.22.2
- v2.22.1
- v2.22.0
- v2.21.9
- v2.21.8
- v2.21.7
- v2.21.6
- v2.21.5
- v2.21.4
- v2.21.3
- v2.21.2
- v2.21.1
- v2.21.0
- v2.20.2
- v2.20.1
- v2.20.0
- v2.19.2
- v2.19.1
- v2.19.0
- v2.18.0
- v2.17.5
- v2.17.4
- v2.17.3
- v2.17.2
- v2.17.1
- v2.17.0
- v2.16.0
- v2.15.2
- v2.15.1
- v2.15.0
- v2.14.0
- v2.13.0
- v2.12.1
- v2.12.0
- v2.11.0
- v2.10.1
- v2.10.0
- v2.9.1
- v2.9.0
- v2.8.0
- v2.7.2
- v2.7.1
- v2.7.0
- v2.6.0
- v2.5.0
- v2.4.0
- v2.3.0
- v2.2.2
- v2.2.1
Remeda
The first “data-first” and “data-last” utility library designed especially for TypeScript.
Documentation
Read the full docs and API reference on remedajs.com/docs.
Migrating from other libraries? Check out our migration guides for Lodash and Ramda!
Interested in contributing? Read the contributing guide.
Features
- First-class TypeScript support, with types that are as specific as possible.
- Supports data-first (
R.filter(array, fn)
) and data-last (R.filter(fn)(array)
) approaches. - Lazy evaluation support with
pipe
andpiped
. - Runtime and types are both extensively tested, with full code coverage.
- Tree-shakable, supports CJS and ESM.
- Fully documented with JSDoc, supports in-editor function documentation.
Getting started
Installation
npm install remeda
pnpm add remeda
yarn add remeda
bun install remeda
Usage
// Import everything:
import * as R from "remeda";
// Or import methods individually:
// import { pipe, tap, unique, take } from "remeda";
R.pipe(
[1, 2, 2, 3, 3, 4, 5, 6],
R.tap((value) => console.log(`Got ${value}`)),
R.unique(),
R.take(3),
); // => [1, 2, 3]
// Console output:
// Got 1
// Got 2
// Got 2
// Got 3
Getting help
Questions, bug reports, and feature requests are tracked in GitHub issues.
Contributors
Made with contrib.rocks.