Rest
...objects: Iterable<T>[]The iterable objects of interest.
An iterator which yields the values of the iterables in the order in which they are supplied.
import { chain } from '@lumino/algorithm';
let data1 = [1, 2, 3];
let data2 = [4, 5, 6];
let stream = chain(data1, data2);
Array.from(stream); // [1, 2, 3, 4, 5, 6]
Chain together several iterables.