(obj: unknown)
| 339 | } |
| 340 | |
| 341 | function isIterable<T>(obj: unknown): obj is Iterable<T> { |
| 342 | return typeof (obj as Iterable<T>)[Symbol.iterator] === "function"; |
| 343 | } |
| 344 | |
| 345 | function isAsyncIterable<T>(obj: unknown): obj is AsyncIterable<T> { |
| 346 | return typeof (obj as AsyncIterable<T>)[Symbol.asyncIterator] === "function"; |
no outgoing calls
no test coverage detected