Function

sum (dependentKey) Ember.ComputedProperty public

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.

© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/2.18/functions/@ember%2Fobject%2Fcomputed/sum