You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash](https://lodash.com/) exported as [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) modules.
3
+
The [lodash](https://lodash.com/)library exported as [Node.js](https://nodejs.org/) modules.
4
4
5
5
Generated using [lodash-cli](https://www.npmjs.com/package/lodash-cli):
6
6
```bash
7
-
$ lodash modularize modern exports=node -o ./
8
-
$ lodash modern -d -o ./index.js
7
+
$ lodash modularize exports=node -o ./
8
+
$ lodash -d -o ./lodash.js
9
9
```
10
10
11
11
## Installation
@@ -17,18 +17,18 @@ $ {sudo -H} npm i -g npm
17
17
$ npm i --save lodash
18
18
```
19
19
20
-
In Node.js/io.js:
20
+
In Node.js:
21
21
22
22
```js
23
23
// load the modern build
24
24
var _ =require('lodash');
25
25
// or a method category
26
26
var array =require('lodash/array');
27
27
// or a method (great for smaller builds with browserify/webpack)
28
-
var chunk =require('lodash/array/chunk');
28
+
var chunk =require('lodash/chunk');
29
29
```
30
30
31
-
See the [package source](https://github.com/lodash/lodash/tree/3.10.1-npm) for more details.
31
+
See the [package source](https://github.com/lodash/lodash/tree/4.0.0-npm) for more details.
32
32
33
33
**Note:**<br>
34
34
Don’t assign values to the [special variable](http://nodejs.org/api/repl.html#repl_repl_features)`_` when in the REPL.<br>
@@ -38,9 +38,9 @@ Install [n_](https://www.npmjs.com/package/n_) for a REPL that includes lodash b
38
38
39
39
lodash is also available in a variety of other builds & module formats.
40
40
41
-
*npm packages for [modern](https://www.npmjs.com/package/lodash), [compatibility](https://www.npmjs.com/package/lodash-compat), & [per method](https://www.npmjs.com/browse/keyword/lodash-modularized)builds
42
-
*AMD modules for [modern](https://github.com/lodash/lodash/tree/3.10.1-amd) & [compatibility](https://github.com/lodash/lodash-compat/tree/3.10.1-amd) builds
43
-
*ES modules for the [modern](https://github.com/lodash/lodash/tree/3.10.1-es) build
*[_.inRange](https://lodash.com/docs#inRange) for checking whether a number is within a given range
79
-
*[_.isNative](https://lodash.com/docs#isNative) to check for native functions
80
-
*[_.isPlainObject](https://lodash.com/docs#isPlainObject) & [_.toPlainObject](https://lodash.com/docs#toPlainObject) to check for & convert to `Object` objects
81
-
*[_.isTypedArray](https://lodash.com/docs#isTypedArray) to check for typed arrays
82
-
*[_.mapKeys](https://lodash.com/docs#mapKeys) for mapping keys to an object
83
-
*[_.matches](https://lodash.com/docs#matches) supports deep object comparisons
84
-
*[_.matchesProperty](https://lodash.com/docs#matchesProperty) to complement [_.matches](https://lodash.com/docs#matches) & [_.property](https://lodash.com/docs#property)
85
-
*[_.merge](https://lodash.com/docs#merge) for a deep [_.extend](https://lodash.com/docs#extend)
86
-
*[_.method](https://lodash.com/docs#method) & [_.methodOf](https://lodash.com/docs#methodOf) to create functions that invoke methods
87
-
*[_.modArgs](https://lodash.com/docs#modArgs) for more advanced functional composition
88
-
*[_.parseInt](https://lodash.com/docs#parseInt) for consistent cross-environment behavior
89
-
*[_.pull](https://lodash.com/docs#pull), [_.pullAt](https://lodash.com/docs#pullAt), & [_.remove](https://lodash.com/docs#remove) for mutating arrays
Automated [browser](https://saucelabs.com/u/lodash) & [CI](https://travis-ci.org/lodash/lodash/) test runs are available. Special thanks to [Sauce Labs](https://saucelabs.com/) for providing automated browser testing.
0 commit comments