Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including lodash with all npm packages installed. Try it out:

// 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([1, 2, 3], function(n) { return n * 3; }) )

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

lodash v4.17.11

Lodash modular utilities.

lodash v4.17.11

The Lodash library exported as Node.js modules.


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.

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


Tested in Chrome 68-69, Firefox 61-62, IE 11, Edge 17, Safari 10-11, Node.js 6-10, & PhantomJS 2.1.1.
Automated browser & CI test runs are available.


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free