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/LICENSE3. Used by agents' projects
Dependency in 111 public GitHub projects set up for AI coding agents that we scanned (1.8%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
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
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
Often used with
Lodash in practice
Strengths
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.
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.
<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>.
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
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".
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.
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
Alternatives
Lodash This page
Pick es-toolkit for a newer, smaller helper library with TypeScript types built in that covers many of the same helpers.
Pick lodash-es for the same lodash helpers as ES modules, so front-end build tools keep only the helpers you use.
Pick remeda when you write TypeScript and want helpers designed for typed data from the start.
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.”
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');
Rules for your agent
## 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
The docs mark _.template insecure and set it for removal in Lodash v5; 4.18.0 fixed another code injection in it.
The lodash.get package is deprecated, and most lodash.* packages lag behind the main release.
The main package is the whole library; cherry-picking keeps the page bundle small.
merge writes into its first argument, so shared defaults change for everyone.
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.