Assert that input is an AsyncIterable.
input
AsyncIterable
async function* gen() { yield 1;}assertIsAsyncIterable(gen()); // does not throwassertIsAsyncIterable([1, 2, 3]); // throws TypeError: input is not an AsyncIterable Copy
async function* gen() { yield 1;}assertIsAsyncIterable(gen()); // does not throwassertIsAsyncIterable([1, 2, 3]); // throws TypeError: input is not an AsyncIterable
Assert that
inputis anAsyncIterable.