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 Copy
const data = [];addToArray(data, tick({ interval: 1000, loops: 5 }));// Execution continues immediately, with `data` mutated over time
Adds values to the provided array as they are produced, mutating array.