next

abstract operator override fun next(): JsIterator.JsIteratorResult<T>

Fetch the next value from the current iterator.

If a value is present, it is returned. If the iterator was already finished and no value is available to return, an error is thrown.

Return

The next value from the iterator.