UNPKG

rxjs

Version:

Reactive Extensions for modern JavaScript

6 lines (4 loc) 192 B
import { isFunction } from './isFunction'; export function isAsyncIterable<T>(obj: any): obj is AsyncIterable<T> { return Symbol.asyncIterator && isFunction(obj?.[Symbol.asyncIterator]); }