Collect the iterator into an array.
import { pipe } from "yta";import { range, toArray } from "yta/sync";pipe(range(5), toArray());// => [0, 1, 2, 3, 4] Copy
import { pipe } from "yta";import { range, toArray } from "yta/sync";pipe(range(5), toArray());// => [0, 1, 2, 3, 4]
Collect the iterator into an array.