UNPKG

@sanity/migrate

Version:

Tooling for running data migrations on Sanity.io projects

7 lines (6 loc) 174 B
export async function* tap<T>(it: AsyncIterableIterator<T>, interceptor: (value: T) => void) { for await (const chunk of it) { interceptor(chunk) yield chunk } }