I have this list of objects:
mylistobjects = [{id: 1, name: 'One'}, {id: 2, name: 'Two'}, {id: 3, name: 'Three'}, {id: 4, name: 'Four'}, {id: 5, name: 'Five'}]
How can I find and remove object from the list by its id
?
I have this list of objects:
mylistobjects = [{id: 1, name: 'One'}, {id: 2, name: 'Two'}, {id: 3, name: 'Three'}, {id: 4, name: 'Four'}, {id: 5, name: 'Five'}]
How can I find and remove object from the list by its id
?