I've saved some data in localStorage, for example:
$localStorage.recent = [{'id':1,'name':'abc','is_availbale':1},{'id':2,'name':'xyz','is_availbale':1},{'id':3,'name':'pqrs','is_availbale':0}];
There's another array that only contains the IDs of certain people (array_second can only have IDs already present in $localStorage.recent) -
array_second=['3'];
I need to remove the entries from $localStorage.recent that match the IDs in array_second. The expected output is-
$localStorage.recent = [{'id':1,'name':'abc','is_availbale':1},{'id':2,'name':'xyz','is_availbale':1}];