* @param {*} obj * @returns {obj is Iterable}
(obj)
| 308 | * @returns {obj is Iterable} |
| 309 | */ |
| 310 | function isIterable (obj) { |
| 311 | return !!(obj != null && (typeof obj[Symbol.iterator] === 'function' || typeof obj[Symbol.asyncIterator] === 'function')) |
| 312 | } |
| 313 | |
| 314 | /** |
| 315 | * Checks whether an object has a safe Symbol.iterator — i.e. one that is |
no outgoing calls
no test coverage detected