(collection: Iterable<bigint>)
| 746 | * @since 2.0.0 |
| 747 | */ |
| 748 | export const sumAll = (collection: Iterable<bigint>): bigint => { |
| 749 | let out = bigint0 |
| 750 | for (const n of collection) { |
| 751 | out += n |
| 752 | } |
| 753 | return out |
| 754 | } |
| 755 | |
| 756 | /** |
| 757 | * Takes an `Iterable` of `bigint`s and returns their product as a single `bigint`. Returns `1n` for an empty iterable. |
nothing calls this directly
no outgoing calls
no test coverage detected