Returns the first element for which a predicate is truthy. Stops as soon as a match is found. Returns undefined when nothing matches. Part of Lodash 4.x Collection (since 0.1.0).
Pass the required arguments shown below. Lodash Collection helpers usually return a new value — check whether the source is mutated.
Syntax
Call _.find on a collection. Start with this line.
No match. Missing users return undefined, not null.
Compatibility
Browser & Runtime Support
_.find is a Lodash 4.x Collection helper (since 0.1.0). It runs anywhere Lodash runs — modern browsers (CDN or bundle) and Node.js / Bun / Deno with npm install lodash. Native Array.prototype.find covers arrays only; Lodash also walks plain objects and offers iteratee shorthands plus fromIndex.
✓ Stable · Lodash 4.x
_.find()
Available in [email protected] full builds and the lodash/find modular import. Works in evergreen browsers and current Node LTS when Lodash is installed.
100%With Lodash 4.x
Google ChromeSupported · Desktop & Mobile
Full support
Mozilla FirefoxSupported · Desktop & Mobile
Full support
Apple SafariSupported · macOS & iOS
Full support
Microsoft EdgeSupported · Chromium
Full support
Internet ExplorerNo native support · Use a polyfill
Polyfill
OperaSupported · Modern versions
Full support
Samsung InternetSupported · Android
Full support
BunSupported · JavaScript runtime
Supported
DenoSupported · JavaScript runtime
Supported
Node.jsSupported · Server runtime
Supported
Android WebViewSupported · Modern WebView
Full support
_.findLodash 4.x+
Bottom line: Safe for production once Lodash is loaded. Prefer import find from "lodash/find" for smaller builds. Ideal for lookup-by-field, first active row, and config matching.
Frequently Asked Questions
_.find(collection, predicate, [fromIndex=0]) returns the first element whose predicate is truthy. If nothing matches, it returns undefined.
No. It only reads until a match is found. The source array or object is unchanged.
find returns one element (or undefined). filter returns an array of every match and always walks the whole collection.
find scans left-to-right (or object order). findLast scans right-to-left and returns the last match.
For array-like collections, fromIndex is where the search starts (default 0). Negative values count from the end.
Use import find from "lodash/find" or require("lodash/find") for tree-shaking. Full build: import _ from "lodash" then _.find.