toss/es-toolkit
Fork: 317 Star: 6866 (更新于 2024-11-14 19:14:49)
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.27.0 ( 2024-11-10 20:27:29)
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.
最近版本更新:(数据更新于 2024-11-21 20:35:51)
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
2024-10-14 14:39:46 v1.25.0
2024-10-07 21:28:44 v1.24.0
2024-10-01 22:14:06 v1.23.0
2024-09-28 23:38:34 v1.22.0
2024-09-25 15:41:17 v1.21.0
toss/es-toolkit同语言 TypeScript最近更新仓库
2024-11-21 16:14:54 RSSNext/Follow
2024-11-21 14:41:29 continuedev/continue
2024-11-21 00:40:00 immich-app/immich
2024-11-20 19:46:23 CopilotKit/CopilotKit
2024-11-20 18:49:53 awslabs/multi-agent-orchestrator
2024-11-20 14:58:38 x-extends/vxe-table