lodash /lodash

A modern JavaScript utility library delivering modularity, performance, & extras.

★ 61,265⑂ 7,225👁 826⑃ 1,662● 4,364▤ 4◈ 21
JavaScriptNOASSERTIONCreated 2012-04-07lodash.com/
61,265
stars
+3
7,225
forks
826
watchers
1,662
prs
4,364
issues
4
releases
21
discussions

README

lodash v4.18.1

Site |
Docs |
FP Guide |
Contributing |
Wiki |
Code of Conduct |
Governance |
Twitter |
Chat

 [!IMPORTANT]
 As announced on the OpenJS Foundation blog, Lodash has received support from the Sovereign Tech Agency and will transition to the Feature-Complete maturity stage so that it remains stable, secure, and sustainable long-term. As part of this effort, Lodash is rebooting its governance. A draft charter will be published shortly. The upcoming Technical Steering Committee (TSC) is already at work. For transparency, its members are listed in GOVERNANCE.md.

The Lodash library exported as a UMD module.

Generated using lodash-cli:
shell
$ npm run build
$ lodash -o ./dist/lodash.js
$ lodash core -o ./dist/lodash.core.js


 Download

  Core build (~4 kB gzipped)
  Full build (~24 kB gzipped)
  CDN copies

Lodash is released under the MIT license & supports modern environments.
Review the build differences & pick one that’s right for you.

 Installation

In a browser:
html



Using npm:
shell
$ npm i -g npm
$ npm i --save lodash


In Node.js:
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');


 Why Lodash?

Lodash makes JavaScript easier by taking the hassle out of working with arrays,
numbers, objects, strings, etc. Lodash’s modular methods are great for:

  Iterating arrays, objects, & strings
  Manipulating & testing values
  Creating composite functions

 Module Formats

Lodash is available in a variety of builds & module formats.

  lodash & per method packages
  lodash-es, babel-plugin-lodash, & lodash-webpack-plugin
  lodash/fp
  lodash-amd

Top issues

Discussions

Latest release

4.18.1 4.18.1 2026-04-01
Bugs

Fixes a ReferenceError issue in lodash lodash-es lodash-amd and lodash.template when using the template and fromPairs functions from the modular builds. See https://github.com/lodash/lodash/issues/6167issuecomment-4165269769

These defects were related to how lodash distributions are built from the main branch using https://github.com/lodash-archive/lodash-cli. When internal dependencies change inside lodash functions, equivalent updates need to be made to a mapping in the lodash-cli. (hey, it was ahead of its time once upon a time!). We know this, but we missed it in the last releas

Snapshot: 2026-11-10T09:35:25Z · Data license Apache-2.0 · JSON