A modern JavaScript utility library delivering modularity, performance, & extras.
A modern JavaScript utility library delivering modularity, performance, & extras.
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:
$ npm run build
$ lodash -o ./dist/lodash.js
$ lodash core -o ./dist/lodash.core.jsLodash is released under the MIT license & supports modern environments.
Review the build differences & pick one that’s right for you.
In a browser:
<script src="lodash.js"></script>Using npm:
$ npm i -g npm
$ npm i --save lodashIn Node.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');Lodash makes JavaScript easier by taking the hassle out of working with arrays,
numbers, objects, strings, etc. Lodash’s modular methods are great for:
Lodash is available in a variety of builds & module formats.
[Bug]`_.truncate` hangs forever with a zero-length-capable regex `separator`
baseUnset: __proto__ guard checks ownership on the root object, not the current node
debounced function not working after Bun sleepSync
_.cloneDeep does not deep clone Map keys (only values)
Update CVEs for Lodash.* per-method packages
clone() doesn't clone own 'hasOwnProperty' field if Object.prototype is frozen
cloneDeep behaves differently for top-level-functions than for nested ones
Regression test request: prototype-pollution-safe omit/unset paths
cloneDeep wrongly applies <undefined> value to weak array elements; should stay <empty>!
_.invert and _invertBy removes key when _proto_ value