@epikodelabs/streamix / src/public-api / getIterator
Function: getIterator()
getIterator<
T>(iterable):AsyncIterator<T,any,any> |Iterator<T,any,any>
Defined in: projects/libraries/streamix/src/lib/utils/coordinator.ts:618
Gets an iterator from an iterable object. Supports both synchronous and asynchronous iterables.
Type Parameters
T
T
Parameters
iterable
The iterable to get an iterator from.
AsyncIterable<T, any, any> | Iterable<T, any, any>
Returns
AsyncIterator<T, any, any> | Iterator<T, any, any>
An AsyncIterator or Iterator.
Throws
If the provided object is not iterable.