mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Use _.toArray in wrapperNext.
This commit is contained in:
@@ -6065,7 +6065,7 @@
|
|||||||
*/
|
*/
|
||||||
function wrapperNext() {
|
function wrapperNext() {
|
||||||
if (this.__values__ === undefined) {
|
if (this.__values__ === undefined) {
|
||||||
this.__values__ = values(this.value());
|
this.__values__ = toArray(this.value());
|
||||||
}
|
}
|
||||||
var done = this.__index__ >= this.__values__.length,
|
var done = this.__index__ >= this.__values__.length,
|
||||||
value = done ? undefined : this.__values__[this.__index__++];
|
value = done ? undefined : this.__values__[this.__index__++];
|
||||||
|
|||||||
Reference in New Issue
Block a user