lodash

The modern build of lodash modular utilities.

lodash v3.3.1

The modern build of lodash exported as Node.js/io.js modules.

Generated using lodash-cli:

$ lodash modularize modern exports=node -o ./
$ lodash modern -d -o ./index.js

Using npm:

$ {sudo -H} npm i -g npm
$ npm i --save lodash

In Node.js/io.js:

// load the modern build 
var _ = require('lodash');
// or a method category 
var array = require('lodash/array');
// or a method (works great with browserify/webpack to create smaller builds) 
var chunk = require('lodash/array/chunk');

See the package source for more details.

Note:
Don’t assign values to the special variable _ when in the REPL.
Install n_ for a REPL that includes lodash by default.

lodash is also available in a variety of other builds & module formats.

Tested in Chrome 39-40, Firefox 34-35, IE 6-11, Opera 26-27, Safari 5-8, io.js 1.3.0, Node.js 0.8.28, 0.10.36, & 0.12.0, PhantomJS 1.9.8, RingoJS 0.11, & Rhino 1.7RC5.

Automated browser & CI test runs are available. Special thanks to Sauce Labs for providing automated browser testing.