MCPcopy Create free account
hub / github.com/Kong/insomnia / isAsyncIterable

Function isAsyncIterable

packages/insomnia/src/sync/git/http-client.ts:31–33  ·  view source on GitHub ↗
(obj: any)

Source from the content-addressed store, hash-verified

29}
30
31function isAsyncIterable<T>(obj: any): obj is AsyncIterable<T> {
32 return obj && typeof obj[Symbol.asyncIterator] === 'function';
33}
34
35// Convert a web ReadableStream (not Node stream!) to an Async Iterator
36// adapted from https://jakearchibald.com/2017/async-iterators-and-generators/

Callers 1

fromStreamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected