let data = [
{ name: 1, id: 2, age: 3 },
{ name: 11, id: 2, age: 4 },
{ name: 12, id: 21, age: 13 }
];
let result = data.filter(item => item.id === 2);
console.log(result);
03-10
1495
11-24
8308
05-08