Checks if value is any kind of Iterator or AsyncIterator, including Generator and AsyncGenerator, but excluding standard Iterables (that are legally also Iterators) like Array, Set & Map, that have their own z.type and are more than Any Just Iterator.
isAnyJustIterator(value): value is Iterator<any, any, any>
Checks if value is any kind of
Iterator
orAsyncIterator
, includingGenerator
andAsyncGenerator
, but excluding standard Iterables (that are legally also Iterators) likeArray
,Set
&Map
, that have their ownz.type
and are more than Any Just Iterator.