aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/rxjs/src/internal/util/isAsyncIterable.ts
blob: d419dc370e88545fe8107ae81fd9c1b342f7efca (plain) (blame)
1
2
3
4
5
import { isFunction } from './isFunction';

export function isAsyncIterable<T>(obj: any): obj is AsyncIterable<T> {
  return Symbol.asyncIterator && isFunction(obj?.[Symbol.asyncIterator]);
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage