(collSizer: (map: Coll<Child>) => number)
| 5 | |
| 6 | const collSizeN = |
| 7 | <Child>(collSizer: (map: Coll<Child>) => number) => |
| 8 | (coll: Coll<Coll<Child>>): number => |
| 9 | arrayReduce<Coll<Child>, number>( |
| 10 | collValues(coll), |
| 11 | (total, coll2) => total + collSizer(coll2), |
| 12 | 0, |
| 13 | ); |
| 14 | |
| 15 | export const collSize = (coll: Coll<unknown> | undefined): number => |
| 16 | coll?.size ?? 0; |
no test coverage detected
searching dependent graphs…