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

$ npm i lodash
# or
yarn add lodash
$ npm i lodash
# or
yarn add lodash
// Load the full build.
const _ = require("lodash");
// Load the core build.
const _ = require("lodash/core");
// Load the FP build for immutable auto-curried iteratee-first data-last methods.
const fp = require("lodash/fp");

// Load method categories.
const array = require("lodash/array");
const object = require("lodash/fp/object");

// Cherry-pick methods for smaller browserify/rollup/webpack bundles.
const at = require("lodash/at");
const curryN = require("lodash/fp/curryN");
// Load the full build.
const _ = require("lodash");
// Load the core build.
const _ = require("lodash/core");
// Load the FP build for immutable auto-curried iteratee-first data-last methods.
const fp = require("lodash/fp");

// Load method categories.
const array = require("lodash/array");
const object = require("lodash/fp/object");

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

Also available through CDN copies
Lodash is released under the MIT license & supports modern environments.

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

Conventional builds

Review the build differences & pick one that’s right for you.

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

Note:

Install n_ for Lodash use in the Node.js < 6 REPL.

Further Reading

Support

Tested in Chrome 54-55, Firefox 49-50, IE 11, Edge 14, Safari 9-10, Node.js 6-7, & PhantomJS 2.1.1. Automated browser & CI test runs are available.