What I wanna do is tricky to explain...
This is the general idea:
var object1 = [{"number":1111,"test":0,"low":2131},{"number":1234,"test":0,"low":2684},{"number":4214,"test":0,"low":6345}];
var object2 = [{"number":1234}];
Some code here
output: var object1 = [{"number":1111,"test":0,"low":2131},{"number":4214,"test":0,"low":6345}];
I am only ever using the number attribute. The rest do not matter how ever the other attributes are still in there regardless. It is scraped content.
I want to remove a item from object using another object as the reference for what i want removed. Keeping in mind, this is all dynamic so i may have 3 items in one object and 100 in the other object.
I need to check object 1 and see if it contains anything from object 2 and If it does then i wanna delete the object 2 items from object 1 then output the remaining items from object 1. Confusing...
Any help would be appreciated.