let info = [
{
title : "QWERT",
id : "1"
},
{
title : "LOL",
id : "1"
},
{
title : "KEK",
id : "2"
}
]
Array.prototype.findBy = function(field, value){
return this.filter(c=>c.hasOwnProperty(field) && c[field] == value)
}
let filtered = info.findBy('id', 1)
console.log(filtered)