Creates a Lodash wrapper around value to enable implicit method chain sequences. Some results auto-unwrap; others need .value(). Part of Lodash 4.x Seq (the main _ function).
Pass the value you want to wrap or transform. Finish with .value() when the result stays wrapped.
Syntax
Call _(value). Start with this line.
Lodash
_(value)
Call
What it does
_(value)
Primary signature.
Prefer import _ from "lodash" (full build) when you need wrapping and chaining.
Library declarations
Lodash
_(value)
Parameters
Parameter
Description
value
Required. Value to wrap
Return Value
Return Value
Description
*
Lodash wrapper (implicit chain)
Lodash Examples
Example 1 — Official: reduce vs map
Show auto-unwrap versus a wrapped collection.
Lodash
function square(n) {
return n * n;
}
var wrapped = _([1, 2, 3]);
wrapped.reduce(_.add);
// → 6
var squares = wrapped.map(square);
_.isArray(squares);
// → false
_.isArray(squares.value());
// → true
_(value) is the main Lodash 4.x entry point (Seq/wrapper). It runs anywhere full Lodash runs — modern browsers (CDN or bundle) and Node.js / Bun / Deno with npm install lodash. There is no native Lodash-style wrapper — use nested calls or array methods instead.
✓ Stable · Lodash 4.x
_(value)
Available as the default lodash export and via CDN. Wrapper chaining expects a full Lodash build. 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
_(value)Lodash 4.x full
Bottom line: Safe for production with full Lodash. Prefer _(value) for short implicit pipelines; use _.chain when you need explicit unwrap control.
Frequently Asked Questions
It wraps value in a Lodash instance so you can call Lodash methods fluently. Official: _([1,2,3]).reduce(_.add) → 6 (auto-unwrapped).
Methods that return a single/primitive-like result (reduce, head, sum, …) end the implicit chain. Methods that return arrays/collections (map, filter, …) stay wrapped.
_(value) uses implicit chaining. _.chain(value) forces explicit chaining — you must call .value() yourself.
Yes when the last method stays wrapped (e.g. map). Use .value() to get a plain array/object.
Lodash defers work until unwrap (implicit or .value()). Shortcut fusion may merge some iteratee steps on arrays.
No. Mutation depends on later methods you call (e.g. reverse may mutate).