@arcmantle/library
Preparing search index...
array/array-sum
arrayObjSum
Function arrayObjSum
arrayObjSum
<
T
extends
Record
<
string
|
number
|
symbol
,
any
>
>
(
arr
:
T
[]
,
prop
:
(
obj
:
T
)
=>
any
,
)
:
number
Returns the sum of all numbers in an array of objects using a prop function.
Type Parameters
T
extends
Record
<
string
|
number
|
symbol
,
any
>
Parameters
arr
:
T
[]
prop
:
(
obj
:
T
)
=>
any
Returns
number
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@arcmantle/library
Loading...
Returns the sum of all numbers in an array of objects using a prop function.