i have this array:
const hobbies = [{name:'Skate'}, {name:'Movies'}, {name:'Food'}]
Looping through i want to delete object where name is Skate
for (const iterator of hobbies) {
if(iterator === 'Skate'){
delete object
}
}
Turns out, i think we cant delete a object literally, any idea on how to do this?