$ npm install remeda
The first "data-first" and "data-last" utility library designed especially for TypeScript.
Read the full docs and API reference on remedajs.com/docs.
Migrating from other libraries? Check out our migration guides for Lodash and Ramda!
R.filter(array, fn)
) and data-last (R.filter(fn)(array)
) approaches.pipe
and piped
.npm install remeda
pnpm add remeda
yarn add remeda
bun install remeda
// 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
Questions, bug reports, and feature requests are tracked in GitHub issues.
© 2010 - cnpmjs.org x YWFE | Home | YWFE