UNPKG

380 BTypeScriptView Raw
1/**
2 * Converts an existing iterable to anarray of values.
3 *
4 * @export
5 * @template TSource The type of elements in the source sequence.
6 * @param {Iterable<TSource>} source The source sequence to convert to an array.
7 * @returns {TSource[]} All the items from the source sequence as an array.
8 */
9export declare function toArray<TSource>(source: Iterable<TSource>): TSource[];