title: jQuery 2 dimensional array - How to loop through it and make a list based on a condition to the array value
body: <p>So here is my 2D array in Jquery.</p>
  
  <pre><code>var Codes = [
      $.map($('*[id^="action"]:checked ~ *[id^="product"]'), function (item, idx){
          return $(item).val();
      }),
      $.map($('*[id^="action"]:checked'), function (item, idx) {
          return $(item).val();
      })
  ];
  </code></pre>
  
  <p>The array is something like this
  Codes["Apple"][101], ["Pear"][30] etc.,</p>
  
  <p>I need to make a list of all the codes (eg., 101,1,3) for the product "Apple".</p>
  
  <p>I am pretty new to jquery. Would appreciate any pointers.</p>
  
  <p>Thanks</p>