@hiveio/workerbee / WorkerBeeIterable
Class: WorkerBeeIterable<T>
Container that can be iterated over the elements of the collection.
Examples
for (const { transaction } of data.whaleOperations)
console.log(`Got transaction: #${transaction.id}`);
data.whaleOperations.forEach(({ transaction }) => console.log(`Got transaction: #${transaction.id}`)));
Type Parameters
• T
Implements
-
Iterable
<T
>
Constructors
new WorkerBeeIterable()
new WorkerBeeIterable<
T
>(iterable
):WorkerBeeIterable
<T
>
Parameters
iterable
Iterable
<T
, any
, any
>
Returns
Defined in
Methods
[iterator]()
[iterator]():
Iterator
<T
,any
,any
>
Returns
Iterator
<T
, any
, any
>
Implementation of
Iterable.[iterator]
Defined in
forEach()
forEach(
callbackfn
):void
Parameters
callbackfn
(value
) => void
Returns
void
Defined in
values()
values():
Iterable
<T
,any
,any
>
Returns
Iterable
<T
, any
, any
>