ixfx
    Preparing search index...

    Function addToArray

    • Adds values to the provided array as they are produced, mutating array.

      const data = [];
      addToArray(data, tick({ interval: 1000, loops: 5 }));
      // Execution continues immediately, with `data` mutated over time

      Type Parameters

      • Out

      Parameters

      Returns Promise<void>