A modern JavaScript utility library that's 2-3 times faster and up to 97% smaller—a major upgrade to lodash.
Go to file
Dayong Lee bd7cb34cb7
feat(isArrayLike,isFunction): Add isArrayLike and isFunction with compatibility (#265)
* add isArrayLike and isFunction

* Add bench

* Add create arguments function

* Add isArrayLike function

* Add compatibility

* Change sub title to korean in isLength docs

* Add docs

* Fix typo error

* add toArgs testcase and remove a unusable expression

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-21 10:51:09 +09:00
.circleci chore(ci): add Prettier format check to CI workflow (#243) 2024-07-19 17:26:51 +09:00
.github Fix Markdown formatting of CODE_OF_CONDUCT.md (#211) 2024-07-15 22:37:01 +09:00
.scripts build: Add compat to postbuild.sh 2024-07-18 23:09:48 +09:00
.vscode style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
.yarn/sdks 1.0.0 2024-05-31 16:54:41 +09:00
benchmarks feat(isArrayLike,isFunction): Add isArrayLike and isFunction with compatibility (#265) 2024-07-21 10:51:09 +09:00
docs feat(isArrayLike,isFunction): Add isArrayLike and isFunction with compatibility (#265) 2024-07-21 10:51:09 +09:00
src feat(isArrayLike,isFunction): Add isArrayLike and isFunction with compatibility (#265) 2024-07-21 10:51:09 +09:00
.eslintrc.js chore: Disable 'jsdoc/require-jsdoc' eslint rule (#146) 2024-07-09 23:59:55 +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.13.1 2024-07-20 11:55:45 +09:00
codecov.yml ci(codecov): Add codecov and upload test coverage (#34) 2024-06-13 13:56:41 +09:00
jsr.json v1.13.1 2024-07-20 11:55:45 +09:00
LICENSE Update LICENSE 2024-07-15 08:33:26 +09:00
package.json test: Add missing test lines 2024-07-20 12:49:11 +09:00
README-ko_kr.md docs: Translate Simplified Chinese (#165) 2024-07-12 10:08:55 +09:00
README-zh_hans.md docs: Translate Simplified Chinese (#165) 2024-07-12 10:08:55 +09:00
README.md docs: Translate Simplified Chinese (#165) 2024-07-12 10:08:55 +09:00
tsconfig.json chore: Add publish for jsr step 2024-06-30 13:23:06 +09:00
tsup.config.ts build: Add build for browsers 2024-07-20 11:18:01 +09:00
vitest.config.mts test: Add missing test lines 2024-07-20 12:49:11 +09:00
yarn.lock chore: Update package.json 2024-07-17 11:55:51 +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