Lo-Dash v2.4.1

A utility library delivering consistency, customization, performance, & extras.

_.assign({ 'a': 1 }, { 'b': 2 }, { 'c': 3 });
// → { 'a': 1, 'b': 2, 'c': 3 }
_.map([1, 2, 3], function(n) { return n * 3; });
// → [3, 6, 9]

Download v2.4.1

Check out our wiki for details over the differences between builds.

CDN copies available at cdnjs & jsDelivr. For smaller file sizes, create custom builds with only the features needed.
Love modules? We’ve got you covered with lodash-amd, lodash-es6, lodash-node, & npm packages per method.

Dive in

There’s plenty of API documentation, unit tests, & benchmarks.
Check out DevDocs; a fast, organized, & searchable interface for our documentation.

The full changelog for this release is available on our wiki.
A list of upcoming features is available on our roadmap.

Features not in Underscore

Who’s using Lo-Dash?


A list of other community created podcasts, posts, & videos is available on our wiki.


Tested in Chrome, Firefox, IE, Opera, Safari, Node.js, Narwhal, PhantomJS, Ringo, & Rhino.
Automated browser test results are available as well as Travis CI builds for lodash, lodash-cli, lodash-amd, lodash-node, & grunt-lodash.

Special thanks to Sauce Labs for providing automated browser testing.
Sauce Labs

Installation & usage

In browsers:

<script src="lodash.js"></script>

Using npm:

npm i --save lodash

{sudo} npm i -g lodash
npm ln lodash

In Node.js & Ringo:

var _ = require('lodash');
// or as Underscore
var _ = require('lodash/dist/lodash.underscore');


In Rhino:


In an AMD loader:

  'packages': [{
    'name': 'lodash',
    'location': 'path/to/lodash',
    'main': 'lodash'
['lodash'], function(_) {