Const
Materializes the source iterable into a concrete array.
Curried version of _toArray.
Element type produced by the source iterable.
An array containing every element yielded by src in iteration order.
src
const snapshot = _toArray(new Set([1, 2, 3]));console.log(snapshot); // [1, 2, 3] Copy
const snapshot = _toArray(new Set([1, 2, 3]));console.log(snapshot); // [1, 2, 3]
or using the curried version:
const snapshot = pipeInto(new Set([1, 2, 3]), toArray());console.log(snapshot); // [1, 2, 3] Copy
const snapshot = pipeInto(new Set([1, 2, 3]), toArray());console.log(snapshot); // [1, 2, 3]
Materializes the source iterable into a concrete array.
Curried version of _toArray.