I have a sharepoint column named AllLinks in which im storing array as:
[{"AllLinks":"Link9","LinkURL":"http://www.Link9.com"},
{"AllLinks":"Link6","LinkURL":"http://www.Link6.com"}]
How to check if a value exists in an array of objects and if a match is found, delete the key value pair.
For example if the value Link6 matches, delete the entry completely from the array using javascript/jquery. I tried with:
var newA = data.d.results.filter(function (item) return item.AllLinks !== x;});
but item.AllLinks again returns the complete array itself
as AllLinks is a column in my sharepoint list.