Underscore.js
Keep, but not for new work. 7th of 8 utility libraries.
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
Overall4.7
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 3.5, likely 2.5 to 4.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.
- peers es-toolkit downloadsLast4Weeks: 337M, up 15x year over year
- pistack.xyz/posts/2026-07-30-javascript-utility-libraries-lodash-ramda-underscore-radash-es-toolkit-comparison: Recommends es-toolkit for new work
- npm downloadsSame4WeeksYearAgo: Growth below median
GPT-6.2 Sol: 5.8, likely 4.7 to 6.9
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.
- underscorejs.org: Documents a mature, modular API and unusually broad engine compatibility.
- es-toolkit.dev: Documents built-in types and a Lodash compatibility layer.
- remedajs.com: Documents a TypeScript-first API.
- npm hasTypes and versionsLastYear; peers; medianDownloadsRatio: Underscore ships no types and trails the newer peers in release activity and download growth.
Needed by many5.9
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.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.
- blog.logrocket.com/javascript-evolution-lodash-underscore-vanilla: Native JS covers many Underscore helpers
- category.job: Everyday array, object and string helpers
GPT-6.2 Sol: 5.8, likely 4.7 to 6.9
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.
- underscorejs.org/#compatibility: Documents browser and Node.js support and compatibility with ES3 engines.
- reddit.com/r/typescript/comments/1adq70e/whats_your_go_to_iterative_toolbelt_for_ts_these: Developers describe using native collection methods for routine work and libraries for more complex operations.
- 2025.stateofjs.com/en-US/other-tools/#libraries: 4,265 respondents reported using Lodash, indicating continued demand for general-purpose helpers.
Helps a lot5.4
How well does it do the job for those who need it?
Claude Opus 5.5: 4.0, likely 3.0 to 5.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.
- npm hasTypes: No bundled TypeScript types
- pistack.xyz/posts/2026-07-30-javascript-utility-libraries-lodash-ramda-underscore-radash-es-toolkit-comparison: Slowest in benchmarks; relies on @types/underscore
- github.com/jashkenas/underscore: ESM, CJS and UMD builds, tree-shake tests
GPT-6.2 Sol: 6.7, likely 5.6 to 7.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.
- underscorejs.org: Documents the API, import options, chaining, and shallow cloning.
- npmjs.com/package/%40types/underscore?activeTab=versions: DefinitelyTyped declarations are distributed as a separate package.
- scitepress.org/Papers/2021/105410/105410.pdf: An independent pipeline benchmark found costs from eager intermediate results.
- remedajs.com/docs: Remeda documents typed pipelines and lazy evaluation for supported operations.
Holds up over time5.5
Will it still be a good choice in two years?
Claude Opus 5.5: 5.0, likely 3.5 to 6.5
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.
- github commitsLastYear: 49 commits, 0 GitHub releases
- npm latestPublishedAt: 1.13.8 published Feb 2026
- en.wikipedia.org/wiki/Underscore.js: Developed mainly by Julian Gonggrijp since 2020
- github.com/jashkenas/underscore: Patreon and Tidelift funding links
GPT-6.2 Sol: 5.9, likely 4.7 to 7.1
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.
- github commitsLastYear and pushedAt; npm versionsLastYear: 49 commits, an October push, and one npm release in the past year.
- peers commitsLastYear and latestPublishedAt: es-toolkit and Remeda had more commits and both published in November 2026.
- underscorejs.org: The changelog records the release gap, and the project lists Patreon and Tidelift.
- github.com/jashkenas/underscore/issues/3012: A maintainer answered a downstream release-tag question the same day.
Used widely6.4
How many use it, and is that growing?
Claude Opus 5.5: 6.0, likely 5.0 to 7.5
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.
- npm downloadsLast4Weeks: 172.7M vs 63.1M a year ago (2.7x)
- medianDownloadsRatio: Median 4.1x; Underscore below it
- dependents.repos: 738k repos, behind Lodash's 1.9M
- bluesky posts: Only 1 post in 24 months
GPT-6.2 Sol: 6.8, likely 5.6 to 8.0
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.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, and medianDownloadsRatio: 172.7 million versus 63.1 million downloads, below median growth.
- dependents; github stars: 738,210 indexed repositories, 25,330 packages, and 27,295 stars.
- peers downloadsLast4Weeks, downloadsSame4WeeksYearAgo, and dependentRepos; bluesky posts: Lodash leads indexed repos, es-toolkit and Remeda grew much faster, and Underscore drew one Bluesky post.
- w3techs.com/technologies/details/js-underscore: Detected on 6.6% of surveyed websites in November 2026, including bundled use.
- raw.githubusercontent.com/jashkenas/backbone/master/package.json: Backbone installs Underscore as a runtime dependency.
Vouched for5.1
Who stands behind it being good?
Claude Opus 5.5: 4.0, likely 2.5 to 5.5
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.
- pistack.xyz/posts/2026-07-30-javascript-utility-libraries-lodash-ramda-underscore-radash-es-toolkit-comparison: Positioned for legacy and Backbone apps
- dev.to/aleksei_aleinikov/es-toolkit-in-2026-the-lodash-replacement-thats-2-faster-and-97-smaller-3ej5: Current writing recommends es-toolkit
- hackerNews stories: 0 matching stories
GPT-6.2 Sol: 6.2, likely 5.0 to 7.3
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.
- raw.githubusercontent.com/WordPress/WordPress/master/wp-includes/script-loader.php: WordPress core registers 1.13.8 for Backbone and several admin features.
- chromium.googlesource.com/external/github.com/google/perfetto/%2B/b5adeedcede5567bf9bf7a107fed0d1a7fe3f78a%5E%21: Perfetto updated its Underscore dependency to 1.13.8.
- 2025.stateofjs.com/en-US/other-tools/#libraries: The published survey results provide a Lodash usage figure and no Underscore satisfaction figure.
Safe7.5
How safe is it to depend on?
Claude Opus 5.5: 7.5, likely 6.5 to 8.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.
- npm dependencies: 0 runtime dependencies
- advisories: 2 total, both fixed
- osv.dev/vulnerability/GHSA-qpx9-hpmf-5gmw: DoS fixed in 1.13.8
- scorecard score: 6.7; Branch-Protection 0, Pinned-Dependencies 0
GPT-6.2 Sol: 7.4, likely 6.4 to 8.5
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.
- npm dependencies, license, and latestPublishedAt; advisories recent: Zero runtime dependencies, MIT licence, and a February 19 release before the March 3 disclosure.
- osv.dev/vulnerability/CVE-2026-27601: Identifies 1.13.8 as the patched version for the 2026 advisory.
- osv.dev/vulnerability/GHSA-cf4h-3jhx-xvhq: Records fixed versions for the earlier templating advisory.
- scorecard score and checks: 6.7 overall, with zeroes for branch protection, pinned dependencies, and fuzzing. Signing was unscored.
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
- npm downloads, 4 weeks
- 173M ×2.7 in a year
- GitHub stars
- 27k
- Commits, 12 months
- 49
- npm version
- 1.13.8 Feb 2026
- Versions, 12 months
- 1
- Advisories, 24 months
- 1 of 2 ever
- OpenSSF Scorecard
- 6.7 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (jashkenas/underscore), npm (underscore), OSV and the OpenSSF Scorecard.