A modern JavaScript utility library delivering modularity, performance & extras.
open sourceMITself-hostablefree
Lodash is a JavaScript utility library for working with arrays, collections, objects, strings, numbers and functions: deep cloning, merging and equality checks, grouping and sorting, reading nested paths, debouncing and throttling, and hundreds of other helpers. It comes as a full build, a small core build, lodash/fp (immutable, auto-curried, data-last functions) and per-method modules, with ES modules in the lodash-es package and Babel and webpack plugins that trim bundles. It's based on Underscore.js and is an OpenJS Foundation project; in October 2025 it got Sovereign Tech Agency support and is moving to a feature-complete maturity stage under a new Technical Steering Committee.
Problems it solves
- deep clone a nested object in JavaScript without writing my own recursive function
- debounce a search box so it doesn't send a request on every keystroke
- throttle a scroll or resize handler that fires far too often
- read a deeply nested property without crashing when something in the path is undefined
- group an array of objects by a field and count how many are in each group
- deep merge two configuration objects in JS
- check whether two objects or arrays are deeply equal
- remove duplicates from an array of objects by one key
- compose data transformations from curried, data-last functions
- split a long array into chunks of a fixed size
- import only the helper functions I use so my frontend bundle stays small
- pick or omit a set of keys from an object before sending it to the API
Features
- array, collection, object, string, number and function helpers
- debounce, throttle and memoize
- deep clone, merge and equality
- full build (~24 kB gzipped) and core build (~4 kB gzipped)
- lodash/fp: immutable, auto-curried, iteratee-first, data-last functions
- per-method modules and per-method packages
- ES modules in lodash-es
- babel-plugin-lodash and lodash-webpack-plugin
- custom builds with lodash-cli
- browser and Node.js
Limitations
- No new features planned: Lodash is moving to a feature-complete maturity stage, focused on staying stable and secure1
Capabilities
| Has an API | plan not known |
|---|
