next

Seq
since 4.0.0

Returns

Object the next iterator value.

Gets the next value on a wrapped object following the iterator protocol.

Example of Lodash _.next

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

wrapped.next();
// => { 'done': false, 'value': 1 }

wrapped.next();
// => { 'done': false, 'value': 2 }

wrapped.next();
// => { 'done': true, 'value': undefined }