(iterable)
| 39 | * @returns {number} count of items |
| 40 | */ |
| 41 | const countIterable = (iterable) => { |
| 42 | let i = 0; |
| 43 | for (const _ of iterable) i++; |
| 44 | return i; |
| 45 | }; |
| 46 | |
| 47 | module.exports.countIterable = countIterable; |
| 48 | module.exports.last = last; |
no outgoing calls
no test coverage detected