throw

open fun <T, E : Error> throw(err: E): JsIterator.JsIteratorResult<T>

Iterator: Terminate with the provided err.

Finishes the current iterator, throwing the provided err when value is accessed.

Return

The final iterator result.