Lodash vs es-toolkit
Lodash vs es-toolkit compared for 2026: Lodash 4.18.1 (feature-complete, security fixes in 2026) vs es-toolkit 1.53.2 (modern rewrite with a Lodash-compatible es-toolkit/compat layer). Includes bundle sizes and run times we measured, the API calls that silently change behaviour when you switch, the 2026 prototype-pollution and template fixes we reproduced, and a migration path.
Quick Answer
Lodash and es-toolkit both give you debounce, groupBy, cloneDeep, isEqual and the rest of the everyday utility belt, but they come from different eras. Lodash 4.18.1 (1 April 2026) is moving to a Feature-Complete maturity stage under a new Technical Steering Committee, and its 2026 releases were security fixes. es-toolkit 1.53.2 (6 November 2026) is a typed, tree-shakeable rewrite from Toss that ships every few weeks and includes es-toolkit/compat, a drop-in layer that mirrors Lodash's API. In our runs on 2 December 2026, eight common functions bundled to 10,588 bytes gzipped from lodash-es, 5,612 from es-toolkit/compat and 2,465 from es-toolkit; pick and omit ran four to six times faster in es-toolkit, cloneDeep about 1.7 times faster, while isEqual and groupBy were roughly level. The catch is that es-toolkit's main API is stricter: string iteratees such as uniqBy(users, 'id') throw, and pick(obj, ['a.b']) silently returns {}. Use es-toolkit for new code, move existing Lodash code through es-toolkit/compat first, and if you stay on Lodash, make sure you are on 4.18.x: we reproduced the prototype deletion and template code injection that 4.17.21 still allows.
Last updated December 2, 2026. Covers lodash 4.18.1 (1 April 2026) and es-toolkit 1.53.2 (6 November 2026); npm registry metadata and download counts, GitHub repositories and release notes, lodash README and GOVERNANCE.md, es-toolkit README, changelog and docs (intro, compat, environment and browser support, bundle size, performance) read on 2 December 2026, plus bundle, benchmark, behaviour, TypeScript and security runs we did that day.
| Feature | Lodash | es-toolkit |
|---|---|---|
| Licence & Repository | MIT; lodash/lodash, ~61.4k stars, 130 open issues | MIT; toss/es-toolkit, ~11.4k stars, 72 open issues |
| Latest Release | 4.18.1 on 1 Apr 2026 (lodash and lodash-es) | 1.53.2 on 6 Nov 2026 |
| npm Weekly Downloads (24-30 Nov 2026) | 194,347,415 (lodash) + 68,318,620 (lodash-es) | 83,318,806 |
| Release Activity (2026) | 4.17.23 (Jan), 4.18.0 (31 Mar), 4.18.1 (1 Apr); Feature-Complete stage announced | Releases every 1-4 weeks (1.48.1 to 1.53.2, Jun-Nov 2026) plus daily dev builds |
| Package Size (npm unpacked) & Files | 1.41 MB unpacked, 1,051 files (lodash-es 0.63 MB) | 4.36 MB unpacked, 4,325 files |
| Our Run: debounce Only (min / gzip) | 2,890 / 1,441 B (lodash-es); 3,478 / 1,644 B (lodash/debounce.js) | 520 / 332 B (es-toolkit); 960 / 523 B (compat) |
| Our Run: 8 Common Functions (min / gzip) | 28,324 / 10,588 B (lodash-es) | 6,989 / 2,465 B (es-toolkit); 16,700 / 5,612 B (compat) |
| Our Run: CommonJS require() of the Same 8 | require('lodash'): 73,373 / 26,257 B; 8 lodash/<fn> requires: 36,007 / 14,015 B | Per-function require('es-toolkit/compat/<fn>') supported |
| Our Run: pick / omit, 1M Calls | 509-583 ms / 678-862 ms | 64-137 ms / 133-217 ms (compat 99-210 / 711-777) |
| Our Run: cloneDeep 10k Records x20 | 837-1,102 ms | 524-620 ms (compat 551-641) |
| Our Run: isEqual / groupBy | isEqual 1,030-1,373 ms; groupBy 48-57 ms (level with es-toolkit) | isEqual 911-1,217 ms; groupBy 45-58 ms |
| Our Run: Node.js Import Time | require 17.5-21.2 ms; import('lodash-es') 98-142 ms | require 34.7-39.6 ms (compat 44.6-60.1); import 38.6-42.1 ms |
| API Surface | 306 functions incl. get/set, template, chain | 204 exports (main), 300 (compat); 63 not in Lodash |
| String Iteratees ('id') and Deep Paths ('a.b') | Supported: uniqBy(users, 'id'), pick(obj, ['a.b']) | Main: functions only, top-level keys only; compat: Lodash behaviour |
| Invalid Input (chunk(arr, 0)) | Returns [] | Main throws 'Size must be an integer greater than zero.'; compat returns [] |
| TypeScript | @types/lodash (separate package); loose on paths and iteratee keys | Built in, strict (typed keys, function iteratees) |
| Chaining / FP Style | _.chain() and lodash/fp | No chain; es-toolkit/fp pipe and flow since 1.49.0 |
| Supported Runtimes | Any ES5 environment | Main: Chrome 98, Safari 15.4, Node.js 20.12+; compat: ES2015, Node.js 6+ |
| 2026 Security Fixes (our reproduction) | 4.17.21 vulnerable (prototype deletion, template injection reproduced); 4.18.1 blocks both | compat 1.53.0 vulnerable to the same two issues; 1.53.1+ blocks both |
| Migration Path | Upgrade to 4.18.1 in place; no API changes for normal use | Swap imports to es-toolkit/compat, then move call sites to es-toolkit |
Lodash
Lodash is the utility library most JavaScript codebases already depend on, directly or through a dependency. The lodash package is a CommonJS build with per-method files (lodash/debounce), lodash-es is the ES module build for bundlers, and lodash/fp offers auto-curried, data-last versions. It exposes 306 functions in 4.18.1, including get/set with string paths, string and object shorthand iteratees, method chaining through _.chain, and _.template. In 2026 the project announced support from the Sovereign Tech Agency through the OpenJS Foundation and a transition to a Feature-Complete maturity stage, with a Technical Steering Committee led by creator John-David Dalton. The releases that followed were about safety rather than features: 4.17.23 in January, then 4.18.0 on 31 March 2026, which fixed prototype pollution in _.unset and _.omit (GHSA-f23m-r3pf-42rh) and code injection through _.template imports (CVE-2026-4800), and 4.18.1 the next day, which fixed a ReferenceError in modular builds of template and fromPairs. Types come from the separate @types/lodash package (4.17.28 on 27 November 2026).
Pros
- The reference behaviour: 306 functions, shorthand iteratees, string paths and chaining that years of code rely on
- Zero dependencies and one package; lodash and lodash-es were downloaded 194 million and 68 million times in the week of 24-30 November 2026
- Stable by policy: the project is moving to a Feature-Complete stage under a named TSC, so the API will not churn
- Fastest CommonJS load of the whole library in our run (17.5-21.2 ms for require('lodash'))
- Per-method entry points (lodash/debounce) and lodash/fp still work everywhere, including old runtimes
Cons
- Larger bundles: eight common functions came to 10,588 bytes gzipped from lodash-es, 4.3 times es-toolkit's 2,465
- Slower on everyday calls in our run: pick 509-583 ms and omit 678-862 ms per million calls, against 64-137 and 133-217 ms in es-toolkit
- Types live in @types/lodash and are loose: TypeScript accepted uniqBy(users, 'nope') and get() on a path that does not exist
- Versions before 4.18.0 are exploitable: 4.17.21 deleted String.prototype.trim through _.unset and ran injected code through _.template imports in our test
- importing lodash-es as an ES module took 98-142 ms in Node.js, the slowest load we measured
Best For
Existing codebases that use chaining, string iteratees, string paths or _.template heavily, and projects that need a frozen, conservative API (on 4.18.1 or later).
es-toolkit
es-toolkit is a modern utility library from Toss (Viva Republica) written in TypeScript, published with ESM and CommonJS builds and types for every function. The main entry point exposes a stricter, typed API: iteratees are functions, keys are typed, invalid sizes throw, and functions that modern JavaScript already covers (map, filter, keys, startsWith) are left out. It adds things Lodash never had, such as Mutex, Semaphore, retry, timeout, mapAsync, limitAsync and isNotNil. Alongside it, es-toolkit/compat mirrors Lodash's interface, including shorthand iteratees, string paths, get/set and template; the docs say it has passed Lodash's own test suite since v1.39.3 and that chaining is out of scope. Since 1.49.0 (26 June 2026) there is also an es-toolkit/fp entry point with data-last, pipeable functions. Version 1.53.1 (31 October 2026) shipped security fixes to compat that match Lodash 4.18, and 1.53.2 (6 November 2026) added per-function imports such as es-toolkit/array/chunk. The main library targets Chrome 98, Safari 15.4 and Node.js 20.12 or later; compat runs on ES2015 and Node.js 6 without transpilation.
Pros
- Small bundles: 2,465 bytes gzipped for eight common functions in our run, and 332 bytes for debounce alone
- Faster on most calls we timed: pick 4-8x, omit 4-5x, chunk 2-3x and cloneDeep about 1.7x faster than lodash-es
- Types ship in the package and are strict: TypeScript rejected four of the five Lodash-style calls that would misbehave at run time
- A Lodash-compatible layer (es-toolkit/compat) lets you switch import paths first and clean up call sites later
- Extras Lodash lacks: Mutex, Semaphore, retry, timeout, async collection helpers and type guards
- Actively released: 1.48.1 to 1.53.2 between June and November 2026, with security fixes mirrored from Lodash
Cons
- Not a drop-in for the main entry point: uniqBy(users, 'id') and groupBy(rows, 't') threw TypeErrors, and pick/omit with 'a.b' silently returned the wrong object
- No chaining in either entry point; _.chain code has to be rewritten as plain calls or es-toolkit/fp pipes
- Compat is not always faster: uniqBy took 109-166 ms against Lodash's 48-58 ms, and omit was level with Lodash
- Larger package on disk: 4.36 MB unpacked and 4,325 files, against 1.41 MB for lodash
- Main library needs Chrome 98, Safari 15.4 or Node.js 20.12; older targets need transpilation or the compat entry
Best For
New TypeScript and JavaScript code, bundle-sensitive front ends, and teams retiring Lodash gradually through es-toolkit/compat.
Two projects at different stages
Lodash is not abandoned, but it is finished on purpose. Its README now says the project has support from the Sovereign Tech Agency, announced through the OpenJS Foundation, and will transition to a Feature-Complete maturity stage so that it stays stable, secure and sustainable. GOVERNANCE.md lists a six-person Technical Steering Committee, including creator John-David Dalton and Jordan Harband, which also handles security triage. After four years on 4.17.21, Lodash shipped 4.17.23 in January 2026, 4.18.0 on 31 March and 4.18.1 on 1 April. The 4.18.0 notes are two security fixes and documentation changes; 4.18.1 fixed a build mapping mistake that broke template and fromPairs in the modular builds. es-toolkit is in a feature phase. Its changelog for 2026 adds a data-last es-toolkit/fp entry point (1.49.0, June), serialize, hash, Queue, sentenceCase, lerp (1.53.0, October) and per-function imports (1.53.2, November), alongside a steady stream of compat fixes that bring edge cases closer to Lodash. Popularity still favours Lodash by a wide margin: 194 million weekly downloads for lodash and 68 million for lodash-es, against 83 million for es-toolkit, whose README lists Storybook, Recharts, ink and CKEditor among the projects that use it.
What we measured: bundles, speed and load time
On 2 December 2026 we installed lodash 4.18.1, lodash-es 4.18.1 and es-toolkit 1.53.2 on Node.js 22.23.5 and bundled small entry files with esbuild 0.28.2 (minified, browser, ESM), then compressed with gzip -9. Eight common functions (debounce, groupBy, pick, omit, cloneDeep, isEqual, uniqBy, chunk) came to 28,324 bytes and 10,588 gzipped from lodash-es, 16,700 and 5,612 from es-toolkit/compat, and 6,989 and 2,465 from es-toolkit. CommonJS code is worse off: require('lodash') pulled in the whole library at 73,373 bytes, 26,257 gzipped, and eight lodash/<fn> requires still came to 14,015 gzipped. We then timed each function on 10,000 nested user records, pinned to one core, three runs. pick of three keys took 509-583 ms per million calls with Lodash and 64-137 ms with es-toolkit; omit 678-862 against 133-217; chunk 44-45 against 17-20 ms for 2,000 calls; cloneDeep of all 10,000 records twenty times 837-1,102 against 524-620 ms. isEqual (1,030-1,373 against 911-1,217 ms) and groupBy (48-57 against 45-58 ms) were effectively level. es-toolkit/compat was close to es-toolkit on most calls but slower than Lodash on uniqBy (109-166 against 48-58 ms) and level on omit. Loading the library cost 17.5-21.2 ms for require('lodash'), 34.7-39.6 ms for require('es-toolkit') and 98-142 ms for import('lodash-es').
The calls that change behaviour when you switch
es-toolkit's main entry point is deliberately not Lodash. In our behaviour tests, uniqBy(users, 'id') threw TypeError: mapper is not a function and groupBy(rows, 't') threw getKeyFromItem is not a function, because es-toolkit only accepts function iteratees. Deep paths are the quieter trap: pick({ a: { b: 1, c: 2 } }, ['a.b']) returned {} in es-toolkit and { a: { b: 1 } } in Lodash, and omit with 'a.b' left the object untouched instead of removing b. chunk(arr, 0) threw 'Size must be an integer greater than zero.' where Lodash returns an empty array. There is no get, set, has, isEmpty or template in the main entry point, and no chain anywhere. Everything else we compared matched: camelCase and snakeCase output, merge of arrays and undefined values, isEqual on 0 and -0, cloneDeep of Maps and class instances, and debounce with flush and cancel. es-toolkit/compat returned Lodash's result in every one of these cases. TypeScript helps with the main API: with tsc 6.0.3 in strict mode, the string iteratees and 'a.b' paths were compile errors (four of five planted mistakes; chunk(arr, 0) is a run-time check). The same mistakes against Lodash with @types/lodash 4.17.28 compiled cleanly, including uniqBy(users, 'nope').
2026 security fixes, reproduced
Lodash 4.18.0 fixed two issues, and es-toolkit 1.53.1 fixed the same ones in compat. We checked both directions. With lodash 4.17.21, still the version many lockfiles pin, _.unset('x', ['constructor', 'prototype', 'trim']) returned true and String.prototype.trim became undefined for the whole process; es-toolkit/compat 1.53.0 behaved the same way. On lodash 4.18.1 and es-toolkit 1.53.2 the call returned false and trim was untouched, matching the 4.18.0 note that constructor and prototype are now blocked as non-terminal path keys. For _.template we passed an imports object whose key was x=console.log("INJECTED"). Lodash 4.17.21 and compat 1.53.0 both printed INJECTED before rendering the template, because the key ends up in the parameter list of a Function constructor. Lodash 4.18.1 threw Invalid `imports` option passed into `_.template` and compat 1.53.2 threw the equivalent error. Both bugs need attacker-controlled paths or template options, so many applications are not exposed, but the fix costs nothing for 4.17.x users: npm ls lodash, then upgrade or add an override to 4.18.1. If you migrate to es-toolkit, take 1.53.1 or later for the same reason.
Limits and when not to switch
es-toolkit is not a reason to rewrite working code for its own sake. On the back end, where bundle size does not matter, the gains are real but small in absolute terms, and the CommonJS load of the whole library was slower than Lodash's in our run. Its install is heavier: 4.36 MB unpacked and 4,325 files, against 1.41 MB for lodash, because every function ships ESM, CommonJS and two declaration files. The compat layer is not complete: there is no chain, mixin, tap, thru, sortedUniq or runInContext, and its docs list implicit type conversions, modified built-in prototypes and cross-realm objects as out of scope. The main library assumes Chrome 98, Safari 15.4 or Node.js 20.12; older browser targets need transpilation of node_modules. The benchmark figures above come from one 2-vCPU sandbox and synthetic data; es-toolkit's own claims of 2-3 times faster and up to 97% smaller are its measurements, and our isEqual and groupBy results show that the gap varies by function. Finally, check whether you need either library: structuredClone, Object.groupBy, Array.prototype.toSorted and optional chaining now cover a lot of what teams used Lodash for. Related comparisons: date-fns vs Day.js, Zod vs Valibot and tsup vs tsdown.
Verdict
Use es-toolkit for new code. Its main entry point gave us the smallest bundles and the fastest pick, omit, chunk and cloneDeep, its types caught most misuse at compile time, and it is actively released. For an existing Lodash codebase, do not swap imports to es-toolkit directly: string iteratees throw and deep-path pick and omit quietly return different objects. Move to es-toolkit/compat first, which kept Lodash behaviour in every call we tried and cut our eight-function bundle from 10,588 to 5,612 bytes gzipped, then convert call sites to the main API file by file where bundle size or speed matters, letting TypeScript flag the shorthand iteratees. Stay on Lodash if you depend on _.chain, lodash/fp or a frozen API, or if a library you ship must match Lodash exactly, but upgrade to 4.18.1 now: 4.17.21, still common in lockfiles, deleted a built-in prototype method and ran injected code in our tests. Do not choose either for map, filter, find or Object.keys work that modern JavaScript already does.

