A modern JavaScript utility library that's 2-3 times faster and up to 97% smaller—a major upgrade to lodash.
Go to file
2024-08-25 21:57:59 +09:00
.circleci chore(dev-deps): upgrade to eslint 9 (#396) 2024-08-20 21:55:39 +09:00
.github fix(bind, CD): add sloppy-import flag and explicit symbol type for publishing deno (#345) 2024-08-04 23:20:27 +09:00
.scripts chore: add comment explaining purpose of root .d.ts files (#316) 2024-07-25 18:00:02 +09:00
.vscode style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
.yarn/sdks chore(dev-deps): upgrade to eslint 9 (#396) 2024-08-20 21:55:39 +09:00
benchmarks feat(orderBy, sortBy): support custom key functions in orderBy and integrate sortBy with orderBy (#407) 2024-08-22 23:28:27 +09:00
docs docs: Fix errors in docs (#430) 2024-08-25 21:57:59 +09:00
src docs(timeout): Update docs for timeout (#422) 2024-08-25 10:24:27 +09:00
tests style: Apply prettier 2024-08-11 10:54:13 +09:00
.attw.json test(ci): check the generated dist and package.tgz (#288) 2024-07-23 23:03:27 +09:00
.gitignore build: Add build for browsers 2024-07-20 11:18:01 +09:00
.npmignore 1.0.0 2024-05-31 16:54:41 +09:00
.nvmrc 1.0.0 2024-05-31 16:54:41 +09:00
.prettierignore style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
.prettierrc style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
babel.config.js style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
CHANGELOG.md v1.16.0 2024-08-15 23:18:39 +09:00
codecov.yml ci(codecov): Add codecov and upload test coverage (#34) 2024-06-13 13:56:41 +09:00
eslint.config.mjs chore(dev-deps): upgrade to eslint 9 (#396) 2024-08-20 21:55:39 +09:00
jsr.json v1.16.0 2024-08-15 23:18:39 +09:00
LICENSE Update LICENSE 2024-07-15 08:33:26 +09:00
package.json build: Remove unused package (#408) 2024-08-20 23:38:12 +09:00
README-ja_jp.md docs: Add Japanese README (#394) 2024-08-19 21:23:25 +09:00
README-ko_kr.md docs: Add Japanese README (#394) 2024-08-19 21:23:25 +09:00
README-zh_hans.md docs: Add Japanese README (#394) 2024-08-19 21:23:25 +09:00
README.md docs: Add Japanese README (#394) 2024-08-19 21:23:25 +09:00
rollup.config.mjs config(build): remove sourcemaps for esm/cjs builds (#320) 2024-07-30 00:04:11 +09:00
tsconfig.json feat(isPrimitive): Add isPrimitive 2024-07-21 23:08:02 +09:00
vitest.config.mts style: Apply prettier 2024-08-11 10:54:13 +09:00
yarn.lock build: Remove unused package (#408) 2024-08-20 23:38:12 +09:00

es-toolkit · MIT License codecov NPM badge JSR badge

English | 한국어 | 简体中文 | 日本語

es-toolkit is a state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

  • es-toolkit offers a variety of everyday utility functions with modern implementations, such as debounce, delay, chunk, sum, and pick.
  • Designed with performance in mind, es-toolkit achieves 2-3× better performance in modern JavaScript environments.
  • es-toolkit supports tree shaking out of the box, and reduces JavaScript code by up to 97% compared to other libraries.
  • es-toolkit includes built-in TypeScript support, with straightforward yet robust types. It also provides useful type guards such as isNotNil.
  • es-toolkit is battle-tested with 100% test coverage, ensuring reliability and robustness.

Examples

// import from '@es-toolkit/es-toolkit' in jsr.
import { debounce, chunk } from 'es-toolkit';

const debouncedLog = debounce(message => {
  console.log(message);
}, 300);

// This call will be debounced
debouncedLog('Hello, world!');

const array = [1, 2, 3, 4, 5, 6];
const chunkedArray = chunk(array, 2);

console.log(chunkedArray);
// Output: [[1, 2], [3, 4], [5, 6]]

Contributing

We welcome contribution from everyone in the community. Read below for detailed contribution guide.

CONTRIBUTING

License

MIT © Viva Republica, Inc. See LICENSE for details.

Toss