Executes the chain sequence to resolve the unwrapped value — plain JavaScript data (array, object, number, …). Call it on a Lodash wrapper from _(value) or _.chain(value). Part of Lodash Seq (since 0.1.0).
Call it on a Lodash wrapper. Finish with .value() when you need a plain result.
Syntax
Call _.prototype.value(). Start with this line.
Lodash
wrapper.value()
Call
What it does
wrapper.value()
Primary signature.
Prefer import _ from "lodash" (full build) when you need wrapper prototype helpers.
Pattern. This is the usual end of an explicit chain.
Example 3 — value vs commit
Same flush idea; different return type.
Lodash
var a = [1, 2];
var b = [1, 2];
var afterValue = _(a).push(3).value();
var afterCommit = _(b).push(4).commit();
[
Array.isArray(afterValue),
typeof afterCommit.value === "function"
];
// → [true, true]
Wrapper .value() is a Lodash Seq prototype method (since 0.1.0). It needs no special browser APIs beyond loading Lodash.
✓ Stable · Lodash 0.1.0+
_.prototype.value()
Available in [email protected] full builds when using _(value) / _.chain(value). Works in evergreen browsers and Node / Bun / Deno when Lodash is installed.
100%With Lodash
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
.value()Lodash 0.1.0+
Bottom line: Safe for production once Lodash is on the page or in your bundle. Prefer the full lodash build for Seq / wrapper APIs.
Frequently Asked Questions
It executes the chain sequence and returns the resolved unwrapped value — plain JavaScript data. Official docs: _([1, 2, 3]).value() → [1, 2, 3].
.value() runs pending steps and returns plain data (chain ends). .commit() runs pending steps but returns a new wrapper so you can keep chaining.
Official docs list aliases toJSON and valueOf. They resolve the same unwrapped result in those contexts.
On explicit chains (_.chain / .chain()), yes — unwrap at the end. In hybrid _(value) mode, some methods auto-unwrap; .value() is still the clear way to finish a pipeline.
No. Call wrapped.value() with empty parentheses.
No. Call it on a wrapper from _(value) or _.chain(value). Docs list it as _.prototype.value().