I have an array of objects looking similar to this
[{ id: "11", name: "Car", symbol: "CA" }
,{ id: "13", name: "Cycle", symbol: "CY" }
,{ id: "15", name: "Train", symbol: "TA" }
,{ id: "3", name: "Ufo", symbol: "UF" }]
Lets assume i have this string Car
how do i search through the array of objects to find which object if any contains that particular string in the name key and then remove that object from the array of objects?
This is what i got so far (Basically nothing because i dont know what to do from here)
function remove_obj_from_array_of_objs(str, array_of_objs){
}