UNPKG

@js-data-tools/js-helpers

Version:

A set of JavaScript / TypeScript helper functions for parsing, converting, transforming and formatting data.

10 lines (9 loc) 192 B
export async function toArrayAsync(source, target) { if (!target) { target = []; } for await (const item of source) { target.push(item); } return target; }