Function

Module: @ember/object

Available since v1.4.0

dependentKey
String
returns
ComputedProperty
computes the sum of all values in the dependentKey's array

A computed property that returns the sum of the values in the dependent array.

Example:

```javascript import { sum } from '@ember/object/computed';

class Invoice { lineItems = [1.00, 2.50, 9.99];