I ran across a situation where I needed a list of lists, for lack of a better term. Basically I'm looking for a way to have an enumerable as an option inside another enumerable.
To put it another way, image you need a list of ingredients, so you categorize it into dairy, veggies, fruit, and meat. Now you want specific foods, so in fruit you might put apple, orange, banana, and pear. How can I do that in a JavaScript?
I have to admit I mulled this over for a while, but I must just be missing a simple solution. Any help is greatly appreciated.
↧