UNPKG

1.11 kBMarkdownView Raw
1# lodash v4.17.21
2
3The [Lodash](https://lodash.com/) library exported as [Node.js](https://nodejs.org/) modules.
4
5## Installation
6
7Using npm:
8```shell
9$ npm i -g npm
10$ npm i --save lodash
11```
12
13In Node.js:
14```js
15// Load the full build.
16var _ = require('lodash');
17// Load the core build.
18var _ = require('lodash/core');
19// Load the FP build for immutable auto-curried iteratee-first data-last methods.
20var fp = require('lodash/fp');
21
22// Load method categories.
23var array = require('lodash/array');
24var object = require('lodash/fp/object');
25
26// Cherry-pick methods for smaller browserify/rollup/webpack bundles.
27var at = require('lodash/at');
28var curryN = require('lodash/fp/curryN');
29```
30
31See the [package source](https://github.com/lodash/lodash/tree/4.17.21-npm) for more details.
32
33**Note:**<br>
34Install [n_](https://www.npmjs.com/package/n_) for Lodash use in the Node.js < 6 REPL.
35
36## Support
37
38Tested in Chrome 74-75, Firefox 66-67, IE 11, Edge 18, Safari 11-12, & Node.js 8-12.<br>
39Automated [browser](https://saucelabs.com/u/lodash) & [CI](https://travis-ci.org/lodash/lodash/) test runs are available.