Method: collect.get()
collect.get(
name
):Collector
|undefined
Retrieve a previously defined Collector by name.
Parameters
Parameter | Type | Description |
---|---|---|
name | string | The name of the Collector to retrieve. |
Returns
Collector
| undefined
The Collector associated with the name, or undefined if the Collector doesn't exist.
Examples
Get the elements collected at a point in time
collect.get('collector-1').elements