Let say I have a 5 objects like so in an array:
var myObjects = [{a: 1, b: 2}, {a: 3, b: 4}, {a: 1, b: 6}, {a: 3, b: 8}, {a: 1, b: 9}];
How can I iterate though this myObjects and get objects having similar value a = 1. eg. {a: 1, b: 2},{a: 1, b: 6},{a: 1, b: 9} as a result?
ato search for then provide an example of the result you expecta... so what is the rule to filter value = 1? How should the code know to remove a = 3? they won't be removed by magic, you need to define your rules. Why shouldn't the result be{a: 3, b: 4}, {a: 3, b: 8}for example?