var arr = [ { type: 1, age: 12, name: 'xiaohua' }, { type: 1, age: 12, name: 'xiaoming' }, { type: 1, age: 12, name: 'xiaohong' }, { type: 2, age: 14, name: 'xiaoxiao' }, ]
在一个数组内,如何判断type和age 相等的项
子衿沉夜