Like _.get, but if the resolved value is a function, Lodash invokes it (with this = parent) and returns that call’s result. Part of Lodash Object (stable — not deprecated).
Pass the object and path or keys shown below. Check whether the helper mutates or returns a new object.
Syntax
Call _.result. Start with this line.
Lodash
_.result(object, path, [defaultValue])
Call
What it does
_.result(object, path, [defaultValue])
Primary signature.
_.result(object)
Work with an object’s keys, values, or paths.
Prefer import result from "lodash/result" when you want a smaller bundle.
When result. You want the computed value at the path.
Compatibility
Browser & Runtime Support
_.result is a Lodash Object helper available in 4.x. It runs anywhere Lodash runs — modern browsers (via CDN or bundle) and Node.js / Bun / Deno with npm install lodash. Native equivalents combine safe path reads with typeof value === 'function' ? value.call(parent) : value.
✓ Stable · Lodash 4.x
_.result()
Available in [email protected] full builds and the lodash/result 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
_.resultLodash 4.x
Bottom line: Safe for production once Lodash is on the page or in your bundle. Prefer import result from "lodash/result" for smaller builds. Use get for raw values; invoke when you need method arguments.
Frequently Asked Questions
_.result(object, path, [defaultValue]) resolves a nested path like _.get. If the resolved value is a function, Lodash invokes it with this bound to its parent object and returns that call’s result.
_.get always returns the value at the path (even if it is a function). _.result calls that function when present. For plain data, both behave the same.
If the path does not resolve, _.result returns defaultValue. If defaultValue is a function, it is invoked and its return value is used.
The function is called with this set to its parent object — the object that owns that property along the path.
Use _.invoke when you need to call a method and pass arguments. _.result invokes zero-arg functions found at a path (or returns non-functions as-is).
Use import result from "lodash/result" or require("lodash/result") for tree-shaking. Full build: import _ from "lodash" then _.result.