mirror of
https://gitea.com/actions/setup-python.git
synced 2024-11-22 18:19:35 +01:00
39 lines
1.1 KiB
Markdown
39 lines
1.1 KiB
Markdown
# lodash v4.17.11
|
|
|
|
The [Lodash](https://lodash.com/) library exported as [Node.js](https://nodejs.org/) modules.
|
|
|
|
## Installation
|
|
|
|
Using npm:
|
|
```shell
|
|
$ npm i -g npm
|
|
$ npm i --save lodash
|
|
```
|
|
|
|
In Node.js:
|
|
```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](https://github.com/lodash/lodash/tree/4.17.11-npm) for more details.
|
|
|
|
**Note:**<br>
|
|
Install [n_](https://www.npmjs.com/package/n_) for Lodash use in the Node.js < 6 REPL.
|
|
|
|
## Support
|
|
|
|
Tested in Chrome 68-69, Firefox 61-62, IE 11, Edge 17, Safari 10-11, Node.js 6-10, & PhantomJS 2.1.1.<br>
|
|
Automated [browser](https://saucelabs.com/u/lodash) & [CI](https://travis-ci.org/lodash/lodash/) test runs are available.
|