(collection: Iterable<number>)
| 564 | * @since 2.0.0 |
| 565 | */ |
| 566 | export const sumAll = (collection: Iterable<number>): number => { |
| 567 | let out = 0 |
| 568 | for (const n of collection) { |
| 569 | out += n |
| 570 | } |
| 571 | return out |
| 572 | } |
| 573 | |
| 574 | /** |
| 575 | * Takes an `Iterable` of `number`s and returns their multiplication as a single `number`. |
nothing calls this directly
no outgoing calls
no test coverage detected