I have this object and I want to return a value when the field_id is equal to 40. How can I do this? In this case I want to return 111
myObj = [{
id: 11,
company_id: 1,
field_id: 7,
value: 700,
},
{
id: 12,
company_id: 1,
field_id: 40,
value: 111,
},
{
id: 13,
company_id: 1,
field_id: 41,
value: 222,
}]