- sum<ELEMENT_TYPE>(array, counter): number
-
Type Parameters
-
ELEMENT_TYPE extends unknown
Parameters
-
array: readonly ELEMENT_TYPE[]
-
counter: ((element) => number)
-
- (element): number
-
Parameters
-
element: Readonly<ELEMENT_TYPE>
Returns number
Returns number