Sums the values of the specified field in the specified collection of objects.
field
collection
Collection of objects containing a field with a number value.
Field to get sum for.
Sum of the specified field from the specified collection.
TypeError if any of the values in the collection are not valid numbers.
Sums the values of the specified
field
in the specifiedcollection
of objects.