es-toolkit
es-toolkit copied to clipboard
A modern JavaScript utility library that's 2-3 times faster and up to 97% smaller—a major upgrade to lodash.
How about this `sequence` function? Use generator to implements `sequence` function, it can run function in sequence. I'm thinking of a sequence function that can be executed sequentially. For example...
## Overview Currently, in the object utilities, many functions, including `pick`, constrain the `obj` parameter as `Record`. This type constraint is too broad and allows non-plain objects to be passed...
## Problems 1. At now, we have a custom key function in `sortBy`, but `orderBy` doesn't have this feature. Maybe, this makes confusion. 2. `lodash/orderBy` also supports this feature, but...
nice to have: ```ts trim('"hello, world!"', '"') // output: 'hello, world!' trim('!@#$%^&*wow%#$', ['!', '@', '#', '$', '%', '^', '&', '*']) // output: 'wow' // PHP got second parameter as string('!@#$%^&*'),...
The library already provides the [padStart](https://github.com/toss/es-toolkit/issues/280) and [padEnd ](https://github.com/toss/es-toolkit/issues/332)functions, so using them, we could support the [pad](https://lodash.com/docs/4.17.15#pad) function as well! However, unlike `padStart` and `padEnd`, `pad` does not part of...
Closes #395 Updated the rules according to the [eslint](https://eslint.org/docs/latest/use/migrate-to-9.0.0#eslint-recommended) & [tseslint](https://typescript-eslint.io/blog/announcing-typescript-eslint-v8#rule-breaking-changes) docs I can't make it work with VSCode though... Updated the SDKs, but I'm not familiar with that, will...
ESLInt 9 is out and it seems like all the plugins are supported, so we can probably update to the latest version
I created Japanese translated README.