(value: unknown)
| 39 | * ``` |
| 40 | */ |
| 41 | export 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…