MCPcopy
hub / github.com/apify/crawlee / isAsyncIterable

Function isAsyncIterable

packages/utils/src/internals/iterables.ts:41–47  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

39 * ```
40 */
41export function isAsyncIterable<T>(value: unknown): value is AsyncIterable<T> {
42 if (value == null || typeof value === 'string' || ArrayBuffer.isView(value)) {
43 return false;
44 }
45
46 return typeof Object(value)[Symbol.asyncIterator] === 'function';
47}
48
49/**
50 * Converts any iterable or async iterable to an async iterable.

Callers 3

addRequestsFunction · 0.90
addRequestsBatchedFunction · 0.90
addRequestsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…