Function
| Static Public Summary | ||
| public |
Returns |
|
Static Public
public tee(iterable: Iterable, n: number): IterableIterator[] source
import tee from '@iterable-iterator/tee/src/tee.js'Returns n copies of the input iterable. Note that if the input
iterable is an iterator, then it must be discarded by the caller after
calling tee.
Params:
| Name | Type | Attribute | Description |
| iterable | Iterable | The input iterable. |
|
| n | number | The number of copies to make. |
Return:
| IterableIterator[] |
