js-util

Home > rc-js-util > iteratorConsumeAll

iteratorConsumeAll() function

Iterate over an iterator until it’s done, discarding the results.

Signature:

export declare function iteratorConsumeAll(iterator: IterableIterator<unknown>): void;

Parameters

Parameter Type Description
iterator IterableIterator<unknown>  

Returns:

void