I have an array of json objects, for eg
var user =[ { id: 1, name: 'linto', img: 'img' },
{ id: 2, name: 'shinto', img: 'img' },
{ id: 3, name: 'hany', img: 'img' } ]
From this, i need to remove a particular json object
{ id: 2, name: 'shinto', img: 'img' }.
ie the output array should be like this
[ { id: 1, name: 'linto', img: 'img' },
{ id: 3, name: 'hany', img: 'img' } ]
Is there any function in node.js to achieve this ?