Create an array from an iterable of values.
The iterable object of interest.
A new array of values from the given object.
import { toArray } from '@lumino/algorithm';let stream = [1, 2, 3, 4, 5, 6][Symbol.iterator]();toArray(stream); // [1, 2, 3, 4, 5, 6]; Copy
import { toArray } from '@lumino/algorithm';let stream = [1, 2, 3, 4, 5, 6][Symbol.iterator]();toArray(stream); // [1, 2, 3, 4, 5, 6];
Create an array from an iterable of values.