const arr = [ { 'id':1, 'age':8 }, { 'id':10, 'age':12 } ] const num = arr.filter(v=>v.age>10).reduce((nums,item)=>nums+item.age,0) console.log(num)