UNPKG

@sanity/migrate

Version:

Tooling for running data migrations on Sanity.io projects

12 lines (11 loc) 208 B
/** * @public */ export async function* map<T, U>( it: AsyncIterableIterator<T>, project: (value: T) => U, ): AsyncIterableIterator<U> { for await (const chunk of it) { yield project(chunk) } }