SOURCE

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)
console 命令行工具 X clear

                    
>
console