prototype.next
最后更新于:2022-04-02 00:06:34
## prototype.next
+ [link](./prototype-next "Link to this entry.")
+ [source](https://github.com/lodash/lodash/blob/4.5.0正式版/lodash.src.js#L7361 "View in source.")
+ [npm](https://www.npmjs.com/package/lodash.prototype.next "See the npm package.")
```
_.prototype.next()
```
获得包装对象的下一个值,遵循 [iterator 协议](https://mdn.io/iteration_protocols#iterator)。
### 返回值 (Object)
返回下一个 iterator 值
### 示例
```
var wrapped = _([1, 2]);
wrapped.next();
// => { 'done': false, 'value': 1 }
wrapped.next();
// => { 'done': false, 'value': 2 }
wrapped.next();
// => { 'done': true, 'value': undefined }
```
';