repeat

repeat(n, fn)

Run a function `n` times, passing in `i` on each iteration and returning an array of the results (like map).