prototype.next
_.prototype.next()
获取 迭代器协议 之后的封装对象上的下一个值。
¥Gets the next value on a wrapped object following the iterator protocol.
新增于
¥Since
4.0.0
返 回
¥Returns
(对象):返回下一个迭代器值。
¥(Object): Returns the next iterator value.
示例
¥Example
var wrapped = _([1, 2]);
wrapped.next();
// => { 'done': false, 'value': 1 }
wrapped.next();
// => { 'done': false, 'value': 2 }
wrapped.next();
// => { 'done': true, 'value': undefined }