title: Getting subarrays of JSON response using Mootools
body: <p>Is there any altenative for Jquery $.map(array, function(item)) in mootools. </p>
  
  <p>How can I change following JSON result</p>
  
  <pre><code>{"totalResultsCount":2,"geonames":[{"countryName":"India","name":"Cochin"},{"countryName":"Canada","name":"Cochin"},{"countryName":"Venezuela","name":"Cochina"}]}
  </code></pre>
  
  <p>as</p>
  
  <pre><code>[{"countryName":"India","name":"Cochin"},{"countryName":"Canada","name":"Cochin"},{"countryName":"Venezuela","name":"Cochina"}]
  </code></pre>
  
  <p>I need mootools alternate for  following jquery</p>
  
  <pre><code>    function(data) {
      response($.map(data.geonames, function(item) {
  
  
          return {
              label: item.name + (item.adminName1 ? ", " + item.adminName1 : "") + ", " + item.countryName,
  
          }
  
  }))
  </code></pre>
  
  <p>Any help please</p>