Home Manual Reference Source

Function

Static Public Summary
public

tee(iterable: Iterable, n: number): IterableIterator[]

Returns n copies of the input iterable.

Static Public

public tee(iterable: Iterable, n: number): IterableIterator[] source

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:

NameTypeAttributeDescription
iterable Iterable

The input iterable.

n number

The number of copies to make.

Return:

IterableIterator[]