UNPKG

@emigrate/cli

Version:

Emigrate is a tool for managing database migrations. It is designed to be simple yet support advanced setups, modular and extensible.

13 lines 373 B
/** * This is a simple polyfill for [Array.fromAsync()](https://github.com/tc39/proposal-array-from-async) * * It converts an async iterable to an array. */ export const arrayFromAsync = async (iterable) => { const array = []; for await (const item of iterable) { array.push(item); } return array; }; //# sourceMappingURL=array-from-async.js.map