Function

Module: @ember/object

Available since v1.4.0

import { sum } from '@ember/object/computed';
dependentKey
String
returns
Ember.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.