# Underscore.js: 4.7 out of 10

Keep, but not for new work. 7th of 8 in [Utility libraries](https://elestia.ai/opensource/utilities/index.md).

Underscore.js is the original JavaScript utility belt. It is small, has no dependencies and still gets security patches, but it has no built-in types, it runs slower than its peers in benchmarks, and it has had only one patch release in the last year. Keep it in codebases that already use it, but for new projects choose es-toolkit or Lodash.

**Best for:** Teams maintaining existing Underscore or Backbone codebases who need a stable, dependency-free helper library.

## Scores

- **Overall: 4.7** (likely 3.6 to 5.7)
  - Claude Opus 5.5 (3.5): Underscore is safe and stable to keep where it already runs, but a peer in the bundle beats it on every axis that matters for new work. es-toolkit is faster, typed and actively developed, and Lodash has a larger ecosystem. Slow maintenance and a falling share make it a keep-not-pick choice.
  - GPT-6.2 Sol (5.8): Underscore is a reasonable choice for new code that needs its existing API or older runtime support. For most new TypeScript projects, es-toolkit and Remeda offer bundled types, more active development, and faster adoption growth. The value of legacy compatibility varies enough across projects to keep the range wide.
- **Needed by many: 5.9** (likely 4.9 to 7.0)
  - Claude Opus 5.5 (6.0): Many JavaScript projects still need array and object helpers, but modern built-in JavaScript has taken over much of what Underscore offered. Its general-purpose design does not limit it to one framework or runtime. The range is moderate because how much people still need such libraries is a judgement call.
  - GPT-6.2 Sol (5.8): Collection and object helpers can serve browser and server projects, and Underscore supports unusually old engines. Native JavaScript covers many routine operations, so the need for a separate library depends on the runtime and how much data manipulation the project does.
- **Helps a lot: 5.4** (likely 4.3 to 6.4)
  - Claude Opus 5.5 (4.0): It works and is correct for everyday helpers, and it now offers ESM builds. It has no built-in types and fewer functions than Lodash, and an independent comparison ranks it slowest among the main peers. es-toolkit and Lodash do the same job clearly better for TypeScript projects.
  - GPT-6.2 Sol (6.7): Version 1.13.8 has a well-documented API, useful collection helpers, and modular imports. Separate type declarations and eager chains make it less attractive than Remeda for typed pipelines. The independent pipeline benchmark predates this release, and there is little direct evidence about how reliably coding agents use the API.
- **Holds up over time: 5.5** (likely 4.1 to 6.8)
  - Claude Opus 5.5 (5.0): The project is not archived. It had 49 commits and one patch release in the past year, and it fixed a high-severity bug promptly. Development rests mostly on one maintainer funded by Patreon and Tidelift, and nothing new is planned. It will likely stay stable but stagnant while the ecosystem moves to es-toolkit.
  - GPT-6.2 Sol (5.9): Underscore had 49 commits in the last year and published a security fix before disclosure. The gap since the previous release was about 19 months, and es-toolkit and Remeda show substantially more repository activity. Patreon and Tidelift provide funding channels, though funding levels and release coverage are unclear.
- **Used widely: 6.4** (likely 5.3 to 7.8)
  - Claude Opus 5.5 (6.0): The installed base is very large: 173M downloads in 4 weeks and about 738k dependent repositories. Downloads grew 2.7x in a year, below the 4.1x median, so Underscore is losing ground. es-toolkit grew 15x over the same period. Most installs are transitive or come from old codebases, so few new projects choose it.
  - GPT-6.2 Sol (6.8): Underscore has a large installed base, with about 738,000 indexed dependent repositories, behind Lodash and ahead of Ramda in the supplied data. Its four-week downloads rose 2.74× year over year, below the catalog median of 4.1× and far behind es-toolkit and Remeda. Automated installs and downstream dependencies inflate npm counts, while bundled copies on websites go uncounted, so direct adoption is hard to estimate.
- **Vouched for: 5.1** (likely 3.8 to 6.4)
  - Claude Opus 5.5 (4.0): Its long production history behind Backbone and DocumentCloud is old validation. Current independent write-ups mention it only as a legacy option and recommend es-toolkit or Lodash. There are no Hacker News stories and almost no recent social attention.
  - GPT-6.2 Sol (6.2): WordPress ships 1.13.8 in core, and Google's Perfetto updated to it in 2026. That shows continued reliance by established projects. Recent evidence on developer satisfaction and performance in new projects is sparse, so those deployments carry most of the score.
- **Safe: 7.5** (likely 6.5 to 8.5)
  - Claude Opus 5.5 (7.5): It has zero dependencies and an MIT licence. Both advisories were fixed: the 2026 DoS was patched in 1.13.8 before it was disclosed, and the 2021 template code-execution bug was fixed fast. The Scorecard of 6.7 shows weak branch protection, unpinned dependencies and no fuzzing.
  - GPT-6.2 Sol (7.4): The MIT package has zero runtime dependencies, and 1.13.8 contains fixes for both listed advisories. The 2026 denial-of-service fix was available on npm before public disclosure. The Scorecard reports gaps in branch protection, pinning CI dependencies, and fuzzing, and release signing is unverified.

## Good

- It has no runtime dependencies and ships ESM, CommonJS and UMD builds from one small package.
- The 1.x API has had no breaking changes since 2021, so upgrades are safe.
- Security issues are still fixed: 1.13.8 patched the 2026 recursion DoS before the advisory went public.
- Its API is concise and familiar, and coding agents know it well from years of examples.

## Bad

- It ships no TypeScript types, so you have to add @types/underscore.
- An independent benchmark found it slowest of five utility libraries on cloneDeep, groupBy and filter+map.
- Development has slowed to one patch release a year, with no 2.0 roadmap in sight.
- Most of its downloads are transitive installs, and its share is falling against es-toolkit and Remeda.

## The numbers

- Downloads, 4 weeks: 173M
- In a year: ×2.7
- GitHub stars: 27k
- Commits, 12 months: 49
- Last npm release: Feb 2026
- Advisories, 24 months: 1
- Licence: MIT
- GitHub: https://github.com/jashkenas/underscore
- npm: https://www.npmjs.com/package/underscore

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
