I have an array and I want to delete an object in it. I only have the complete object and I want to delete from the array inside it.
Object = {Comments: [{text: 'hello', x:200, y:100},
{text: 'hi', x:565, y:454},
{text: 'Hola', x:454, y:235}
]
};
I want to delete this object :
toDelete = {text: 'hi', x:565, y:454}
How can I do this?