Creates a Function that returns a Tuple of Iterables with the given length, where each Iterable yields the same values as the source Iterable, in the same order.
length
const iterable = [1, 2, 3];const [iterable1, iterable2] = tee(2)(iterable);console.log(iterable1); // 1, 2, 3console.log(iterable2); // 1, 2, 3
the tuple of Iterables
the length of the Tuple
Generated using TypeDoc
Creates a Function that returns a Tuple of Iterables with the given
length, where each Iterable yields the same values as the source Iterable, in the same order.Example
Returns
the tuple of Iterables