UNPKG

sequency

Version:

Functional sequences for processing iterable data in JavaScript

20 lines (19 loc) 627 B
import Sequence from "./Sequence"; export declare class ToArray { /** * Returns all elements of the sequence as array. If an `array` is passed * the elements are appended to the end of the array. * * @param {Array<T>} array * @returns {Array<T>} */ toArray<T>(this: Sequence<T>, array?: Array<T>): Array<T>; /** * Returns all elements of the sequence as array. If an `array` is passed * the elements are appended to the end of the array. * * @param {Array<T>} array * @returns {Array<T>} */ toList<T>(this: Sequence<T>, array?: Array<T>): Array<T>; }