_.prototype[Symbol.iterator]()

_.prototype[Symbol.iterator]()

source

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]