UNPKG

@sanity/migrate

Version:

Tooling for running data migrations on Sanity.io projects

8 lines (7 loc) 183 B
export async function toArray<T>(it: AsyncIterableIterator<T>): Promise<T[]> { const result: T[] = [] for await (const chunk of it) { result.push(chunk) } return result }