I have a list of IDs as shown below:
var styles = ["600566", "600568", "600569", "600571", "600572", "600574", "600575", "600577", "600578", "600580"];
In my Styles
collection, there are numerous models, and I need to filter this collection to only include the models that have an id
matching one in the array. I can locate a model in a collection by comparing its attribute to a single value like so:
var Selected_Styles = Styles.where({id: "600566"});
However, I am unsure about how to compare against multiple potential values.
Any suggestions on how to achieve this?