Skip to main content

prototype

_.prototype[Symbol.iterator]() # Ⓢ [Ⓣ][1]

Enables the wrapper to be iterable.

Since​

4.0.0

Returns​

(Object): Returns the wrapper object.

Example​

var wrapped = _([1, 2]);

wrapped[Symbol.iterator]() === wrapped;
// => true

Array.from(wrapped);
// => [1, 2]