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"
},
]
how to judge the equal items of type and age in an array