Example 1 — Official Steps
Call .next() three times on _([1, 2]).
var wrapped = _([1, 2]);
[
wrapped.next(),
wrapped.next(),
wrapped.next()
];
// → [
// { done: false, value: 1 },
// { done: false, value: 2 },
// { done: true, value: undefined }
// ] How It Works
- Wrap.
_([1, 2])creates a Seq wrapper. - Step 1–2. Each
.next()yields the next number withdone: false. - Step 3. Past the end →
done: true,value: undefined. - Docs. Matches the official Lodash example.

