Search npm modules search

lodash @4.17.4

Lodash modular utilities.

Share this code:
// Load the full build of lodash var _ = require('lodash'); // merge objects console.log( _.assign({ 'a': 1 }, { 'b': 2 }, { 'c': 3 }) ) // map an array console.log( _.map([1, 2, 3], function(n) { return n * 3; }) )

README

lodash v4.17.4

The Lodash library exported as Node.js modules.

Installation

Using npm:

$ npm i -g npm
$ npm i --save 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');

See the package source for more details.

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

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.

Metadata