Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Lodash

Ready-made helpers for lists and objects.

UtilitiesNPM

GitHubWebsite

1. License

“to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software”

Free for paid and closed products; keep the MIT notice with the package files.

github.com/lodash/lodash/blob/main/LICENSE

From the package registry and GitHub, checked daily; card checked Nov 11, 2026. Tap a verdict to see its source.How we checkedReport an error

What Lodash does

Lodash is a free JavaScript package of small helpers for everyday data work. It groups a list of orders by city, sorts by several fields, reads a deep value safely or waits until a user stops typing. It works in the browser and in Node.js. Many of its jobs are now built into JavaScript itself, so new projects often need only a few of its helpers.

What people build with it

Sales per city on a dashboard

Your admin page groups a list of orders by city, adds up each group and shows the biggest first.

Search as you type

A search box asks the server only after the user pauses, not on every key, so you send one request instead of five.

Read settings that may be missing

Your app reads a deep value from user data, such as an address city, and falls back to a default when a part is empty.

Merge defaults with user settings

Combine your default theme with what a user changed, keeping the parts they did not touch.

Split long lists into pages

Show a long list of results 20 at a time, or send records to another service in batches.

Spot changes before saving Idea

Compare the form data with what was loaded and enable the Save button only when something really changed.

Lodash popularity

84 / 100
Gid Score, #46 overall
212M
downloads a week, npm
61.3K
GitHub stars
111
agent projects use it
Lodash: downloads per weeknpm, lodash 211,573,812
Lodash: GitHub starslodash/lodash 61,328

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How Lodash is used

  • Lodash is a dependency in 111 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (2.3% of the 4,867 JavaScript/TypeScript ones), #8 of 408 in utilities.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 654; those are left out of every share on this page.
  • Projects that use it most often also use Axios (40.5%), date-fns (38.7%), ESLint (69.4%).
  • It is more common in projects set up for Roo Code (5.4%) than for GitHub Copilot (1.2%).

By coding agent

66 projects, 2.7%
61 projects, 1.9%
35 projects, 1.2%
9 projects, 1.9%
8 projects, 1.7%
8 projects, 2.9%
7 projects, 2.0%
6 projects, 5.4%

Often used with

In 40.5% of its projects
In 38.7% of its projects
In 69.4% of its projects
In 65.8% of its projects
In 61.3% of its projects
In 77.5% of its projects
In 26.1% of its projects
In 46.8% of its projects

Lodash in practice

Strengths

A ~4 kB core next to the ~24 kB full build

The README offers two prebuilt files: a core build of ~4 kB gzipped and a full build of ~24 kB gzipped. It points to a build differences page so you can choose between them.

One method per require

You can require a single method by path, for example <code>require('lodash/at')</code>. The README presents this as the way to get smaller browserify, rollup and webpack bundles.

lodash/fp ships in the same package

<code>require('lodash/fp')</code> loads a build that the README describes as "immutable auto-curried iteratee-first data-last methods". FP methods can also be loaded one at a time, for example <code>lodash/fp/curryN</code>.

ESM, AMD and per-method packages, plus build plugins

The module formats are the main package, per-method packages, <code>lodash-es</code>, <code>lodash/fp</code> and <code>lodash-amd</code>. The same list also names two build-tool packages: <code>babel-plugin-lodash</code> and <code>lodash-webpack-plugin</code>.

Watch out for

Moving to a Feature-Complete stage

The README says Lodash "will transition to the Feature-Complete maturity stage". It gives the reason as keeping the library "stable, secure, and sustainable long-term".

Governance charter not yet published

The README says Lodash is rebooting its governance and that a draft charter "will be published shortly". The members of the upcoming Technical Steering Committee are listed in GOVERNANCE.md.

A modular-build bug slipped past CI in the previous release

Release 4.18.1 fixes a <code>ReferenceError</code> in <code>lodash</code>, <code>lodash-es</code>, <code>lodash-amd</code> and <code>lodash.template</code> when using <code>template</code> and <code>fromPairs</code> from the modular builds. The maintainers explain that distributions are built from main using lodash-cli, and a mapping there must be updated when internal dependencies change. They write that they missed this in the last release, and that it "passes in CI, but fails bc the build is not the same thing you tested".

Loading Lodash in Node.js

// Load the full build.
var _ = require('lodash');
// Load the core build.
var _ = require('lodash/core');
// Load the FP build for immutable auto-curried iteratee-first data-last methods.
var fp = require('lodash/fp');

// Load method categories.
var array = require('lodash/array');
var object = require('lodash/fp/object');

// Cherry-pick methods for smaller browserify/rollup/webpack bundles.
var at = require('lodash/at');
var curryN = require('lodash/fp/curryN');

More about Lodash

Packages around it
  • axios: HTTP client
  • eslint: Linter
  • prettier: Code formatter
  • date-fns: Date utilities
  • tailwindcss: Utility-first CSS
  • uuid: UUID generation
More in Utilities

Alternatives

Lodash This page

MITGid 84212M/wk

es-toolkit

Pick es-toolkit for a newer, smaller helper library with TypeScript types built in that covers many of the same helpers.

lodash-es

Pick lodash-es for the same lodash helpers as ES modules, so front-end build tools keep only the helpers you use.

Remeda

Pick remeda when you write TypeScript and want helpers designed for typed data from the start.

Compare Lodash with another tool

Get started

Tell your AI assistant

“Use lodash 4.18.1 for this data work (groupBy, orderBy, sumBy, debounce); import single helpers like lodash/debounce or use lodash-es in front-end code, do not use _.template, and prefer built-in JavaScript where it already does the job.”

  1. Add lodash to your project.

    npm i --save lodash

    From lodash.com/

  2. Load it in Node.js, or load single helpers to keep a web page small.

    // Load the full build.
    var _ = require('lodash');
    // Cherry-pick methods for smaller browserify/rollup/webpack bundles.
    var at = require('lodash/at');
    

    From github.com/lodash/lodash/blob/main/README.md

Rules for your agent

Paste into AGENTS.md or CLAUDE.md
## Lodash
- For smaller browserify, rollup or webpack bundles, require single methods by path (`require('lodash/at')`) instead of the whole library.
- Before choosing between `lodash/core` (~4 kB gzipped) and the full build (~24 kB gzipped), review the build differences page.
- Use `lodash/fp` when you want immutable, auto-curried, iteratee-first, data-last methods. Single FP methods load from `lodash/fp/<name>`, for example `lodash/fp/curryN`.
- Use the `lodash-es` package for ES modules and `lodash-amd` for AMD.
- Release 4.18.1 fixes a `ReferenceError` in `lodash`, `lodash-es`, `lodash-amd` and `lodash.template` when using `template` and `fromPairs` from the modular builds.
- The README says Lodash will move to a "Feature-Complete maturity stage".
- To use Lodash in the REPL of Node.js versions below 6, install `n_`.

Mistakes to avoid

Rendering user text with _.template
Use your framework's escaping templates (JSX, a server template engine) and keep untrusted input out of _.template

The docs mark _.template insecure and set it for removal in Lodash v5; 4.18.0 fixed another code injection in it.

npm install lodash.get (or other single lodash.* packages)
Use optional chaining (obj?.a?.b ?? fallback), or require('lodash/get') from the main package

The lodash.get package is deprecated, and most lodash.* packages lag behind the main release.

import _ from 'lodash' in front-end code for one or two helpers
import debounce from 'lodash/debounce' (or use lodash-es)

The main package is the whole library; cherry-picking keeps the page bundle small.

_.merge(defaults, userSettings) when defaults is shared
_.merge({}, defaults, userSettings)

merge writes into its first argument, so shared defaults change for everyone.

Pinning lodash 4.17.21 because it was the latest for years
Update to lodash 4.18.1

4.18.0 fixed prototype pollution in _.unset and _.omit and code injection in _.template.

Questions

Do I still need lodash in a new project?

Often only for a few helpers such as debounce, groupBy or merge. Loading single helpers keeps your bundle small.

Is lodash still maintained?

Yes, in a stable, security-first mode. Version 4.18.1 came out on 1 April 2026 and the project is moving to a feature-complete stage.

Can I use _.template to fill in emails or pages?

No. The docs mark it insecure and say it will be removed in Lodash v5.

Does _.merge change my original object?

Yes, it writes into the first object you pass. Pass an empty {} first to keep your defaults unchanged.