* Check if value is a sync iterable (has Symbol.iterator). * @returns {boolean}
(value)
| 69 | * @returns {boolean} |
| 70 | */ |
| 71 | function isSyncIterable(value) { |
| 72 | // We do not consider regular strings to be sync iterables in this context. |
| 73 | // We don't care about boxed strings (String objects) since they are uncommon. |
| 74 | return typeof value !== 'string' && |
| 75 | typeof value?.[SymbolIterator] === 'function'; |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * Check if value is an async iterable (has Symbol.asyncIterator). |
no outgoing calls
no test coverage detected
searching dependent graphs…