Function toArray

  • Accumulates all values and emits an array.

    import {pipe, toArray} from 'iter-ops';

    const i = pipe([1, 2, 3], toArray());

    console.log(i.first); //=> [1, 2, 3]

    Type Parameters

    • T

    Returns Operation<T, T[]>