Q:

remove object from array which have same values in javascript

I'm initializing an array with dynamic objects and result is following
var arr = [
    {id: "", name: "", quantity: 0},
    {id: "", name: "", quantity: 0},
    {id: "", name: "", quantity: 0},
    {id: "", name: "", quantity: 0}
];

now i want to remove any object from this array but not finding proper solution. Can someone please help me how to do it.

A:

Guys thank you so much for your help. I have found solution to this issue, following is what I wanted.
this is my array with initial values set.
var arr = [
    {id: "", name: "", quantity: 0},
    {id: "", name: "", quantity: 0},
    {id: "", name: "", quantity: 0},
    {id: "", name: "", quantity: 0}
];

and I I can remove any object like this:
arr.splice(arr[index], 1);

