title: Transforming a Javascript iterable into an array
body: <p>I'm trying to use the new <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map">Map</a> object from Javascript EC6, since it's already supported in the latest Firefox and Chrome versions.</p>
  
  <p>But I'm finding it very limited in "functional" programming, because it lacks classic map, filter etc. methods that would work nicely with a <code>[key, value]</code> pair. It has a forEach but that does NOT returns the callback result.</p>
  
  <p>If I could transform its <code>map.entries()</code> from a MapIterator into a simple Array I could then use the standard <code>.map</code>, <code>.filter</code> with no additional hacks.</p>
  
  <p>Is there a "good" way to transform a Javascript Iterator into an Array?
  In python it's as easy as doing <code>list(iterator)</code>... but <code>Array(m.entries())</code> return an array with the Iterator as its first element!!!</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I forgot to specify I'm looking for an answer which works wherever Map works, which means at least Chrome and Firefox (Array.from does not work in Chrome).</p>
  
  <p><strong>PS.</strong></p>
  
  <p>I know there's the fantastic <a href="https://fitzgen.github.io/wu.js/">wu.js</a> but its dependency on traceur puts me off...</p>