MyGit

toss/es-toolkit

Fork: 267 Star: 6275 (更新于 2024-09-19 02:01:13)

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.20.0 ( 2024-09-18 16:18:24)

官方网址 GitHub网址

es-toolkit · MIT License codecov NPM badge JSR badge Discord 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

最近版本更新:(数据更新于 2024-09-19 02:00:58)

2024-09-18 16:18:24 v1.20.0

2024-09-14 22:20:11 v1.19.0

2024-09-12 21:20:22 v1.18.0

2024-08-31 14:03:56 v1.17.0

2024-08-15 22:19:23 v1.16.0

2024-08-10 16:27:01 v1.15.1

2024-08-10 15:36:07 v1.15.0

2024-08-09 10:00:32 v1.14.0

2024-07-20 10:56:21 v1.13.1

2024-07-20 10:31:17 v1.13.0

toss/es-toolkit同语言 TypeScript最近更新仓库

2024-09-18 18:13:19 n8n-io/n8n

2024-09-18 17:42:59 lobehub/lobe-chat

2024-09-17 21:03:04 vuetifyjs/vuetify

2024-09-17 17:15:10 laurent22/joplin

2024-09-17 15:32:43 vitejs/vite

2024-09-17 09:16:04 honojs/hono