I need to calculate a sum of computed properties that starts with calculateSum string.
I'm not sure how to do that since I can't get their names using this.computed
So my method/attempt is:
getSubTotal(){
var computed_names = [];
var computed_names_filtered = computed_names.filter(x => {return x.startsWith('calculateSum')})
return _.sum(computed_names_filtered.map(x => eval(x+'()'))
}
Do you know how to do that?