_.prototype[Symbol.iterator]()

source

Enables the wrapper to be iterable.

Since

4.0.0

Returns

(Object): Returns the wrapper object.

Example

  1. var wrapped = _([1, 2]);
    wrapped[Symbol.iterator]() === wrapped;
    // => true
    Array.from(wrapped);
    // => [1, 2]