-
-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Labels
Description
Is your feature request related to a problem? Please describe.
Checks whether the passed value is async iterable.
Describe the solution you'd like
const myAsyncIterable = new Object();
myAsyncIterable[Symbol.asyncIterator] = async function*() {
yield "hello";
yield "async";
yield "iteration!";
};
RA.isAsyncIterable(['arrays', 'are', 'iterable']); //=> false
RA.isAsyncIterable(myAsyncIterable); //=> trueDescribe alternatives you've considered
--
Additional context