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.
```js const controller = new AbortController() const signal = controller.signal console.log(isEqual(signal, cloneDeep(signal))) // false ```
This is cluttered: I would personally prefer if compat functions were in a separate section, and compat and non-compat sections were collapsible.
dedent: Given a multi-line string indented with whitespace on every line, remove common indentation from each line. Useful for tagged template literals. See https://github.com/tc39/proposal-string-dedent for more context and [prior art...
Grouping by a key that may not exist results makes the return type of `Record` potentially incorrect. Extending the docs example https://es-toolkit.slash.page/reference/array/groupBy.html: ``` type Grocery = { category: "fruit" |...