toss/es-toolkit
Fork: 352 Star: 7500 (更新于 2025-01-14 07:45:03)
license: NOASSERTION
Language: TypeScript .
A modern JavaScript utility library that's 2-3 times faster and up to 97% smaller—a major upgrade to lodash.
最后发布版本: v1.31.0 ( 2024-12-27 19:05:57)
es-toolkit ·
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 utilized by several popular open-source libraries, such as Storybook and ink.
- es-toolkit is battle-tested with 100% test coverage, ensuring reliability and robustness.
Examples
// import from '@es-toolkit/es-toolkit' in jsr.
import { chunk, debounce } 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.
License
MIT © Viva Republica, Inc. See LICENSE for details.
最近版本更新:(数据更新于 2025-01-19 05:05:06)
2024-12-27 19:05:57 v1.31.0
2024-12-14 13:11:10 v1.30.1
2024-12-13 20:06:08 v1.30.0
2024-12-01 15:34:07 v1.29.0
2024-11-30 21:42:18 v1.28.0
2024-11-10 20:27:29 v1.27.0
2024-10-25 13:26:21 v1.26.1
2024-10-24 21:07:42 v1.26.0
2024-10-16 09:08:45 v1.25.2
2024-10-14 23:15:49 v1.25.1
toss/es-toolkit同语言 TypeScript最近更新仓库
2025-01-18 21:38:50 chenfan0/fideo-live-record
2025-01-18 15:06:58 RSSNext/Follow
2025-01-18 13:15:01 labring/FastGPT
2025-01-18 04:09:49 bluesky-social/social-app
2025-01-17 20:54:16 lobehub/lobe-chat
2025-01-17 11:06:01 TBXark/ChatGPT-Telegram-Workers