Method: collect.forEach()
collect.forEach(
callback
):void
Iterate over each defined Collector.
Parameters
Parameter | Type | Description |
---|---|---|
callback | (collector: Collector, name: string) => void | The callback to invoke for each Collector instance. |
Returns
void
Examples
Log all collectors
collect.forEach(collector => console.log(collector));