Check if given value is AsyncIterable.
AsyncIterable
Not to be confused with isAsynchronousIterable which checks for both AsyncIterable and Iterable.
isAsynchronousIterable
Iterable
isAsyncIterable((async function * () { yield* [] })()); // trueisAsyncIterable([]); // falseisAsyncIterable({}); // false Copy
isAsyncIterable((async function * () { yield* [] })()); // trueisAsyncIterable([]); // falseisAsyncIterable({}); // false
Value to check.
true when is an AsyncIterable, false otherwise.
true
false
Check if given value is
AsyncIterable
.Not to be confused with
isAsynchronousIterable
which checks for bothAsyncIterable
andIterable
.Example