Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

lodash

> 编程语言
Open source

A modern JavaScript utility library delivering modularity, performance, & extras.

61.3K stars0 likes1 views
WebsiteGitHub

About

A modern JavaScript utility library delivering modularity, performance, & extras.

lodash v4.18.1

Site | Docs | FP Guide | Contributing | Wiki | Code of Conduct | Governance | Twitter | Chat

[!IMPORTANT] As announced on the OpenJS Foundation blog, Lodash has received support from the Sovereign Tech Agency and will transition to the Feature-Complete maturity stage so that it remains stable, secure, and sustainable long-term. As part of this effort, Lodash is rebooting its governance. A draft charter will be published shortly. The upcoming Technical Steering Committee (TSC) is already at work. For transparency, its members are listed in GOVERNANCE.md.

The Lodash library exported as a UMD module.

Generated using lodash-cli:

bash
$ npm run build
$ lodash -o ./dist/lodash.js
$ lodash core -o ./dist/lodash.core.js

Download

  • Core build (~4 kB gzipped)
  • Full build (~24 kB gzipped)
  • CDN copies

Lodash is released under the MIT license & supports modern environments.
Review the build differences & pick one that’s right for you.

Installation

In a browser:

xml
<script src="lodash.js"></script>

Using npm:

bash
$ npm i -g npm
$ npm i --save lodash

In Node.js:

javascript
// 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');

Why Lodash?

Lodash makes JavaScript easier by taking the hassle out of working with arrays,
numbers, objects, strings, etc. Lodash’s modular methods are great for:

  • Iterating arrays, objects, & strings
  • Manipulating & testing values
  • Creating composite functions

Module Formats

Lodash is available in a variety of builds & module formats.

  • lodash & per method packages
  • lodash-es, babel-plugin-lodash, & lodash-webpack-plugin
  • lodash/fp
  • lodash-amd

Issues· 105 open

View all issuesOpen on GitHub
  • #6274

    [Bug]`_.truncate` hangs forever with a zero-length-capable regex `separator`

    Updated Sep 19, 2026
  • #6263

    baseUnset: __proto__ guard checks ownership on the root object, not the current node

    Updated Sep 5, 2026
  • #6003

    debounced function not working after Bun sleepSync

    questionUpdated Aug 26, 2026
  • #6228

    _.cloneDeep does not deep clone Map keys (only values)

    enhancementUpdated Jul 20, 2026
  • #6106

    Update CVEs for Lodash.* per-method packages

    noticeUpdated Jul 12, 2026
  • #6112

    clone() doesn't clone own 'hasOwnProperty' field if Object.prototype is frozen

    bugUpdated Jul 12, 2026
  • #6152

    cloneDeep behaves differently for top-level-functions than for nested ones

    questionUpdated Jul 12, 2026
  • #6183

    Regression test request: prototype-pollution-safe omit/unset paths

    enhancementUpdated Jul 12, 2026
  • #6191

    cloneDeep wrongly applies <undefined> value to weak array elements; should stay <empty>!

    bugUpdated Jul 12, 2026
  • #6195

    _.invert and _invertBy removes key when _proto_ value

    bugUpdated Jul 12, 2026

> Tags

JavaScriptjavascriptlodashmodulesutilities

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言