UNPKG

@sanity/migrate

Version:

Tooling for running data migrations on Sanity.io projects

11 lines (10 loc) 202 B
/** * @public */ export async function toArray<T>(it: AsyncIterableIterator<T>): Promise<T[]> { const result: T[] = [] for await (const chunk of it) { result.push(chunk) } return result }