This is my array,
arr = [
{
'User': {
'id':1058,
'name':'user67'
},
Source: {
'dom':'pl-4'
}
},
{
'User': {
'id':768,
'name':'user13'
},
Source: {
'dom':'pl-4'
}
}
];
I am using the following code to remove:
arr= _.without(arr, _.findWhere(arr, {id: 768}));
I want to remove the user with id 768 but it somehow does not work.
How can I search in nested objects?