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.
Current `clone()` function considers only those native classes. - `Date` - `Set` - `Map` - `RegExp` However, there are much more native classes in the JavaScript, especially about binary handling....
Like in [lodash/fp](https://github.com/lodash/lodash/wiki/FP-Guide) [ramda](https://ramdajs.com/docs/#equals) (and offshoots) or [ts-belt](https://mobily.github.io/ts-belt/)
Current `clone()` function considers only those native classes. - `Date` - `Set` - `Map` - `RegExp` However, there are much more native classes in the JavaScript, especially about binary handling....
~Can I work [cloneDeep](https://lodash.com/docs/4.17.15#cloneDeep) of https://github.com/toss/es-toolkit/issues/91? 😁~ I'll implement the clone first, and if there are no contributors afterwards, I'll reopen it 🙇
I'm currently working on `curry` function. and draft version is now implemented. ## Benchmark According to the benchmark results, it appears to be **11 to 17x faster** compared to `lodash`....
Hello, @raon0211 ! As I mentioned at #133 , I would start work on `curry`!
lodash was built before iterators, most of the operations can achieve better performance/memory usage if they were built around iterators instead, it would be nice if this library supported iterators...
Why does [`lowerCase`](https://es-toolkit.slash.page/reference/string/lowerCase.html)'s type signature looks like that: ``` function lowerCase(str: string): string; ```` When [`capitalize`](https://es-toolkit.slash.page/reference/string/capitalize.html)'s looks like this: ``` function capitalize(str: T): Capitalize; ``` Shouldn't it be: ``` function...
Support for [sortBy](https://lodash.com/docs/4.17.15#sortBy) is needed.
Thanks for your contribution! I wish we had time to better configure the settings to generate declaration maps and make the chunk names reflect their actual names. (rather than `chunk-*.mjs`...