(obj, isAsync)
| 110 | } |
| 111 | |
| 112 | function isIterable(obj, isAsync) { |
| 113 | if (obj == null) return false; |
| 114 | if (isAsync === true) return typeof obj[SymbolAsyncIterator] === 'function'; |
| 115 | if (isAsync === false) return typeof obj[SymbolIterator] === 'function'; |
| 116 | return typeof obj[SymbolAsyncIterator] === 'function' || |
| 117 | typeof obj[SymbolIterator] === 'function'; |
| 118 | } |
| 119 | |
| 120 | function isDestroyed(stream) { |
| 121 | if (!isNodeStream(stream)) return null; |
no outgoing calls
no test coverage detected
searching dependent graphs…