I have an array of objects like this:
[
{id: 0, title: 'A'},
{id: 2, title: 'C'},
{id: 1, title: 'B'},
{id: 0, title: 'A'},
]
Object to remove from array:
{id: 0, title: 'A'}
How can I delete the first instance of the object from an array of objects to produce the following output:
[
{id: 2, title: 'C'},
{id: 1, title: 'B'},
{id: 0, title: 'A'},
]
Maybe using filter or map?