Looking at the structure below:
item: {
b: null,
c: "asd",
i: 10,
q: 10,
s: Array [237,241]}
In addition, there is an array of ids available:
var ids = [237, 238, 239, 240, 242, 243...]
I am unsure about how to validate whether the ids mentioned above are present in the 's' property and then store those items in a new array or object.
for (var key in items) {
for (var i in items[key].s) {
//...
}
}