Skip to main content

Method: collect.forEach()

collect.forEach(callback): void

Iterate over each defined Collector.

Parameters

ParameterTypeDescription
callback(collector: Collector, name: string) => voidThe callback to invoke for each Collector instance.

Returns

void

Examples

Log all collectors

collect.forEach(collector => console.log(collector));