var groupArrays = {
"group1" : [
"volvo",
"bmw",
"audi"
],
"group2" : [
"red"
],
"group3" : [
"1991"
]
};
This object is created after filtering a list of cars, I would like to create some css selectors with this to use in javascript to show filtered elements. So basically what I want is an array with possible selectors, something like this:
var selectors = [".volvo.red.1991", ".bmw.red.1991", ".audi.red.1991"];
What's the easiest method here to create the selectors array if the number of groups is unknown?
1991orredthree times?