Type guard: checks if an iterable is async.
Value type.
Return type.
Type passed to next().
next()
The iterable to check.
true if async iterable.
true
isAsyncIterable(function* () { yield 1; }()); // falseisAsyncIterable(async function* () { yield 1; }()); // true Copy
isAsyncIterable(function* () { yield 1; }()); // falseisAsyncIterable(async function* () { yield 1; }()); // true
Type guard: checks if an iterable is async.