Example 1 — Official Docs Unwrap
Reverse a list inside a chain, then extract the plain array.
_.chain([1, 2, 3]).reverse().value();
// → [3, 2, 1] How It Works
- Wrap.
_.chain([1, 2, 3])creates a wrapper. - Reverse. Proxied
reverseflips the wrapped array (and mutates the original). - Unwrap.
.value()returns the plain[3, 2, 1]. - Docs sample. This is the official Underscore unwrap example.

