Last updated 6 years ago
Returns the next value of an . It's functionnally equivalent to iterator => iterator.next().value.
iterator => iterator.next().value
Iterator
next :: Iterator iterator => Any value
import { next } from 'conductor' const iterator = new Set([3, 1, 4]).values() next(numbers) // 3 next(numbers) // 1 next(numbers) // 4 next(numbers) // undefined