Remeda
A utility library for JavaScript and TypeScript.
Install / Use
/learn @remeda/RemedaREADME
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 (
filter(array, fn)) and data-last (filter(fn)(array)) approaches. - Lazy evaluation support with
pipeandpiped. - 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
deno add jsr:@remeda/remeda
Usage
import { pipe, forEach, unique, take } from "remeda";
pipe(
[1, 2, 2, 3, 3, 4, 5, 6],
forEach((value) => console.log(`Got ${value}`)),
unique(),
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
<a href="https://github.com/remeda/remeda/graphs/contributors"> <img src="https://contrib.rocks/image?repo=remeda/remeda" /> </a>Made with contrib.rocks.
Related Skills
node-connect
341.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Writing Hookify Rules
84.5kThis skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
review-duplication
99.5kUse this skill during code reviews to proactively investigate the codebase for duplicated functionality, reinvented wheels, or failure to reuse existing project best practices and shared utilities.
