toIterator

Seq
since 4.0.0

Returns

Object the wrapper object.

Enables the wrapper to be iterable.

Example of Lodash _.toIterator

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

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

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