Lodash
Reasonable, with limits. 4th of 8 utility libraries.
Lodash is the classic JavaScript utility library: mature, dependency-free, MIT-licensed, and now governed under the OpenJS Foundation. It is still safe to keep where it already runs. For a new project, though, es-toolkit or native ES features do most of the same job with built-in types and smaller bundles, and Lodash's share of new choices is falling.
Best for: Existing codebases that already rely on Lodash's exact behaviour and want a stable, feature-complete API with no dependencies.
Scores
Overall6.0
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Lodash is reliable and well known, and its new foundation governance makes it a safe dependency to keep. For new projects, es-toolkit offers the same API with built-in types, ESM, smaller bundles and active development, and native JS covers much of the rest. Lodash is a reasonable choice with real limits, not the one to start with today.
- npm downloads ratio: 2.6x growth, below the 4.1x median; it is losing share to es-toolkit.
- hn.jakechampion.name/reader/https://blog.ulisesgascon.com/the-future-of-lodash: Feature-complete; maintenance is focused on sustainability.
- dev.to/aleksei_aleinikov/es-toolkit-in-2026-the-lodash-replacement-thats-2-faster-and-97-smaller-3ej5: es-toolkit is presented as the modern replacement.
GPT-6.2 Sol: 7.0, likely 5.9 to 8.1
Lodash is a strong pick when exact Lodash behavior, broad CommonJS compatibility, or its full helper set matters. For most new TypeScript projects, es-toolkit offers a closer fit with bundled types and smaller imports, while Remeda is a better fit for typed pipelines. Renewed security maintenance supports continued use, but the sparse release cadence and below-baseline growth lower its standing for new work.
- lodash.com/docs/4.18.1: Documents the breadth and behavior of the current helper set.
- github.com/hckhanh/js-utils-benchmark/blob/main/REPORT.md: Shows the bundle and type differences against es-toolkit and Remeda.
- github.com/remeda/remeda: Documents typed data-first and data-last helpers and pipeline support.
- openjsf.org/blog/lodash-security-overhaul: Documents the maintenance reboot and changes to security handling.
- npm.latestPublishedAt, npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio, peers: April release and download growth below the catalog baseline and leading peers.
Needed by many6.8
How many developers need a tool for this job?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Helper functions for arrays, objects and strings are useful in most JavaScript projects, on any runtime or framework. Native ES features such as Object.groupBy and structuredClone now cover part of the job, which shrinks the need somewhat.
- dev.to/raxxostudios/replacing-lodash-with-native-es2026-groupby-fromasync-toreversed-and-5-more-1ig6: Native ES2026 features replace many Lodash calls.
- dependents: About 1.9M repositories and 159k packages depend on it.
GPT-6.2 Sol: 6.5, likely 5.4 to 7.6
Data transformation is common in browser apps, Node.js services, and scripts, so Lodash serves a large group. Built-ins such as Object.groupBy and array methods now cover many routine tasks. The share that benefits from a full utility library depends on runtime support and how much data manipulation the project does.
- lodash.com/docs/4.18.1: Documents utility coverage across collections, objects, strings, and functions.
- developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/groupBy?trk=article-ssr-frontend-pulse_little-text-block: Native grouping has broad browser support.
- 2025.stateofjs.com/en-US/other-tools: 4,265 respondents reported regular Lodash use.
Helps a lot6.9
How well does it do the job for those who need it?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
The API is very complete and its behaviour is correct and well documented. Its types come from the community package @types/lodash rather than the library itself, the main package is CommonJS-only, and bundle size and speed trail es-toolkit. The design is now dated but still works.
- npm hasTypes: No bundled TypeScript types.
- blog.logrocket.com/es-toolkit-lodash-alternative: es-toolkit is smaller and faster than Lodash for the same functions.
- dev.to/aleksei_aleinikov/es-toolkit-in-2026-the-lodash-replacement-thats-2-faster-and-97-smaller-3ej5: 2026 comparison favours es-toolkit on speed and size.
GPT-6.2 Sol: 7.8, likely 6.7 to 8.8
Version 4.18.1 has a broad API with documented edge cases and examples that give developers and coding agents a clear reference. The main package uses CommonJS and relies on separate TypeScript declarations, while es-toolkit and Remeda bundle their types and tree-shake more readily. In one Bun browser-build test, five helpers imported from the package root took about 26 KB gzipped, versus about 1.8 KB for es-toolkit. Runtime performance varies by helper and workload, and coding-agent accuracy is unmeasured.
- lodash.com/docs/4.18.1: Versioned API examples and documented edge cases.
- github.com/hckhanh/js-utils-benchmark/blob/main/REPORT.md: Independent comparison of Lodash 4.18.1, bundle sizes, and per-helper performance.
- npm.hasTypes: The npm package ships without TypeScript declarations.
Holds up over time5.8
Will it still be a good choice in two years?
Claude Opus 5.5: 5.0, likely 4.0 to 7.0
Lodash moved from a single maintainer to an OpenJS Technical Steering Committee, and the Sovereign Tech Agency funds security and governance work. That lowers the risk of abandonment. However, the project calls itself feature-complete, it had only 29 commits and 2 releases in the last year, the Scorecard Maintained check is 3, and the ecosystem is moving towards es-toolkit and native features.
- hn.jakechampion.name/reader/https://blog.ulisesgascon.com/the-future-of-lodash: Feature-complete; governance moving to a committee; next major version planned with no date.
- openjsf.org/blog/sta-supports-lodash: Sovereign Tech Agency funds the governance and security work.
- github commitsLastYear: 29 commits and 2 releases in the last year.
- news.ycombinator.com/item?id=45496005: Commenters describe low activity and few chances to contribute.
GPT-6.2 Sol: 6.5, likely 5.2 to 7.8
OpenJS set up a steering committee and restored security triage and CI with a Sovereign Tech Agency grant that has since ended. Lodash logged 29 commits and three npm versions in the past year, with the latest in April and 71 pull requests open at the snapshot. The team fixed the 4.18.0 packaging regression the next day, but one documented npm releaser and a much slower pace than es-toolkit or Remeda leave the two-year outlook uncertain. The roadmap emphasizes maintenance and migration to native JavaScript.
- openjsf.org/blog/lodash-security-overhaul: Describes the rebuilt CI, security triage, and technical steering committee.
- sovereign.tech/tech/lodash: Lists the 2025 investment as past.
- openjsf.org/blog/sta-supports-lodash: Describes the roadmap for maintenance and migration to native APIs.
- github.com/lodash/lodash/blob/main/GOVERNANCE.md: Six steering committee members and one documented npm releaser.
- github.com/lodash/lodash/releases: 4.18.1 corrected the modular build regression one day after 4.18.0.
- github.commitsLastYear, github.openPullRequests, npm.versionsLastYear, npm.latestPublishedAt, peers: 29 commits, 71 open pull requests, and three npm versions. Both TypeScript peers released in November.
Used widely8.3
How many use it, and is that growing?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
Its absolute use is enormous: 821M downloads in 4 weeks and about 1.9M dependent repositories, far ahead of every peer. Its download ratio is 2.6x, below the 4.1x median, while es-toolkit grew about 15x. Lodash is therefore losing ground, and much of its volume comes from transitive installs.
- npm downloadsLast4Weeks: 821M now against 316M a year before, a ratio of 2.6x versus the 4.1x median.
- dependents: 1.94M repositories, the most in the category.
- peers es-toolkit downloads: es-toolkit grew from 22.5M to 337M.
GPT-6.2 Sol: 8.5, likely 7.3 to 9.6
Lodash leads the peer set in observed use, with about 1.94 million dependent repositories and 159,000 dependent packages. Four-week downloads rose from 316 million to 821 million, or 2.6×, below the 4.1× catalog baseline and well below es-toolkit and Remeda at roughly 15× and 16×. Automated and transitive installs inflate downloads, while stars and Bluesky posts cover the shared Lodash and lodash-es repository. The counts show a large installed base, with considerable uncertainty about how many new projects choose it.
- dependents: 1,936,033 observed dependent repositories and 159,122 packages.
- npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio, peers: 2.6× year-over-year growth against a 4.1× baseline and faster-growing peers.
- github.stars, bluesky.posts: 61,327 stars and 17 Bluesky posts for the shared repository.
- github.com/hckhanh/js-utils-benchmark/blob/main/REPORT.md: Confirms lodash and lodash-es publish from the same repository.
- openjsf.org/blog/sta-supports-lodash: Describes substantial indirect use through other tools.
Vouched for7.4
Who stands behind it being good?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Lodash has run in production across a vast share of the npm ecosystem for over a decade, and the OpenJS Foundation and Sovereign Tech Agency back it today. Current independent write-ups, however, mostly recommend migrating away from it rather than endorsing it for new code.
- openjsf.org/blog/sta-supports-lodash: Foundation and public funder back the project.
- blog.logrocket.com/es-toolkit-lodash-alternative: Independent write-ups recommend es-toolkit for new work.
- dependents packages: 159k npm packages depend on it.
GPT-6.2 Sol: 7.8, likely 6.6 to 8.9
Grafana and n8n core both declare Lodash as a runtime dependency, and Sovereign Tech Agency funded its maintenance. Developers report relying on its nested object helpers and flag slower deep cloning in some workloads. The benchmark covers one setup, and State of JavaScript measures regular use without a Lodash satisfaction or retention rating.
- github.com/grafana/grafana/blob/main/package.json: Grafana lists Lodash as an application dependency.
- github.com/n8n-io/n8n/blob/master/packages/core/package.json: n8n core declares Lodash as a runtime dependency.
- sovereign.tech/tech/lodash: The agency commissioned about €200,000 of maintenance and modernization work.
- reddit.com/r/reactjs/comments/1h5hua3/what_utility_libraries_do_you_use_instead_of: Users describe nested object helpers in use and cloning performance trade-offs.
- 2025.stateofjs.com/en-US/other-tools: Measures regular use without a Lodash satisfaction or retention score.
- github.com/hckhanh/js-utils-benchmark/blob/main/REPORT.md: Independent benchmark tests the current Lodash release on one runtime.
Safe6.5
How safe is it to depend on?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
It has zero dependencies and an MIT licence. Fixes for recent advisories shipped the same day they were published. Still, there were three advisories in 24 months (one high-severity code injection in _.template), and the 4.18.0 fix was deprecated after breaking behaviour. The Scorecard is 6.6, with weak Token-Permissions, Pinned-Dependencies and Maintained checks.
- advisories: 10 in total and 3 in 24 months, including a high-severity code injection in 2026.
- scorecard: 6.6 overall; Token-Permissions 0, Vulnerabilities 0, Maintained 3.
- security.snyk.io/package/npm/lodash/4.18.0: 4.18.0 was deprecated for breaking behaviour and was an incomplete fix.
- npm dependencies: No runtime dependencies.
GPT-6.2 Sol: 7.0, likely 5.8 to 8.1
Lodash 4.18.1 has zero runtime dependencies, an MIT license, and fixes for all three 2026 advisories. Patches were available around public disclosure, although the January prototype-pollution fix needed a follow-up. The 6.6 Scorecard flags weak workflow token permissions and incomplete dependency pinning. The GitHub release tag is signed, while npm publishing still rests with one documented releaser.
- npm.dependencies, npm.license, advisories.recent: Zero runtime dependencies, MIT license, and three 2026 advisories.
- github.com/advisories/GHSA-xxjr-mmjv-4gpg: Records the January prototype-pollution fix.
- github.com/lodash/lodash/security/advisories/GHSA-f23m-r3pf-42rh: Records the follow-up prototype-pollution fix in 4.18.1.
- github.com/lodash/lodash/security/advisories/GHSA-r5fr-rjxr-66jc: Confirms 4.18.1 addresses the template code-injection advisory.
- scorecard.score, scorecard.checks: 6.6 overall, with token permissions at 0 and pinned dependencies at 4.
- github.com/lodash/lodash/releases: GitHub shows a verified signature on the 4.18.1 tag.
- github.com/lodash/lodash/blob/main/GOVERNANCE.md: One person is listed on the npm release team.
Good
- A huge, battle-tested API, from deep clone and isEqual to debounce, get/set and collection helpers, whose edge-case behaviour is well known.
- No runtime dependencies, an MIT licence, and governance now shared under the OpenJS Foundation with Sovereign Tech Agency support.
- AI coding agents and most developers already know its API, so generated code is usually correct.
- Security reports get triaged and fixed by a named team, which publishes an incident response plan and threat model.
Bad
- It ships no TypeScript types of its own, so you need @types/lodash, and the main package is CommonJS-only and tree-shakes poorly (lodash-es is a separate package).
- Development is mostly frozen, with 29 commits in the last year. The modernised next major version has no date.
- It had three advisories in 24 months, including a high-severity code injection in _.template, and the 4.18.0 fix release was deprecated after it broke behaviour.
- es-toolkit offers a Lodash-compatible API with built-in types, smaller bundles and much faster growth.
The numbers
- npm downloads, 4 weeks
- 821M ×2.6 in a year
- GitHub stars
- 61k
- Commits, 12 months
- 29
- npm version
- 4.18.1 Apr 2026
- Versions, 12 months
- 3
- Advisories, 24 months
- 3 of 10 ever
- OpenSSF Scorecard
- 6.6 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (lodash/lodash), npm (lodash), OSV and the OpenSSF Scorecard.