Quantcast
Viewing latest article 5
Browse Latest Browse All 14

Put an enumerable inside another enumerable (js)

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.

Viewing latest article 5
Browse Latest Browse All 14

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>