Lodash Utility Library
lodash.com
7
Leaving SiteNav
External Link Disclaimer
You are about to visit lodash.com. This website is not operated by us. We are not responsible for its content or privacy practices.
About this website
Lodash is a JavaScript utility library created by John-David Dalton in 2012 as a fork of Underscore.js, providing over two hundred modular utility functions for manipulating arrays, objects, strings, numbers, dates, functions, and collections, with consistent behavior across different JavaScript environments, immutable operations, and chainable APIs, serving as the most widely used utility library in the JavaScript ecosystem with over fifty million weekly npm downloads, adopted by over ninety percent of npm packages including React, Angular, and Vue ecosystems. The modular architecture enables importing individual functions through module paths like lodash dot get and lodash dot merge, with tree-shaking support eliminating unused code from production bundles, reducing bundle size by importing only the needed functions rather than the entire library, while the full build remains available for convenience. The array functions include chunk for splitting arrays into groups, compact for removing falsy values, difference and intersection for set operations, flatten for nested array handling, groupBy for grouping by key, keyBy for keying objects, orderBy for multi-field sorting, partition for filtering into groups, sample and shuffle for random selection, uniqBy for deduplication, and zip for combining arrays. The object functions include get and set for deep property access, merge for deep merging, cloneDeep for deep cloning, pick and omit for property selection, transform for iterative mutation, and invert for key-value swapping. The string functions include camelCase, kebabCase, snakeCase, template, and truncate. The debouncing and throttling functions. The memoize function for caching results. The chain wrapper for method chaining. Designed for JavaScript developers.
Statistics
7
Views
0
Clicks
0
Like
0
Dislike