# lodash

> Lodash modular utilities.

Latest version **4.18.1** (published 2026-04-01) · MIT license · 0 weekly downloads

> **Better alternative:** See documentation for alternatives (https://github.com/AikidoSec/module-replacements/blob/main/docs/lodash-underscore)

## Install

```sh
npm install lodash
pnpm add lodash
yarn add lodash
bun add lodash
```

## Health

**Score 68/100 (B)** — status: active.

Positive: has types package; no vulnerabilities; high maintenance score; high quality score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 4.18.1 |
| Published | 2026-04-01 |
| First published | 2012-04-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/lodash) |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 61242 |
| Author | John-David Dalton |
| Maintainers | mathias, jdalton, bnjmnt4n |
| Keywords | modules, stdlib, util |

## Links

- npm: https://www.npmjs.com/package/lodash
- Repository: https://github.com/lodash/lodash
- Homepage: https://lodash.com/
- Issues: https://github.com/lodash/lodash/issues
- npm.io page: https://npm.io/package/lodash

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 4.18.1 (latest) — 2026-04-01
- 4.18.0 — 2026-03-31
- 4.17.23 — 2026-01-21
- 4.17.21 — 2021-02-20
- 4.17.20 — 2020-08-13
- 4.17.19 — 2020-07-08
- 4.17.18 — 2020-07-08
- 4.17.17 — 2020-07-08
- 4.17.16 — 2020-07-08
- 4.17.15 — 2019-07-19
- 4.17.14 — 2019-07-10
- 4.17.13 — 2019-07-09
- 4.17.12 — 2019-07-09
- 4.17.11 — 2018-09-12
- 4.17.10 — 2018-04-24
- … 102 more at https://npm.io/package/lodash/versions

## README

# lodash v4.18.1

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.18.1-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 74-75, Firefox 66-67, IE 11, Edge 18, Safari 11-12, & Node.js 8-12.<br>
Automated [browser](https://saucelabs.com/u/lodash) & [CI](https://travis-ci.org/lodash/lodash/) test runs are available.

---
_Source: https://npm.io/package/lodash · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
