title: Searching an immutable JS Map
body: <p>Can you please suggest the most efficient way to search Immutable.Map's values?   I'm looking to return the first match.</p>
  
  <p><a href="https://facebook.github.io/immutable-js/" rel="nofollow">https://facebook.github.io/immutable-js/</a></p>
  
  <p>I believe I should get a <code>map.valueSeq()</code> and go from there.  I'm trying to do something like this:</p>
  
  <pre><code>Immutable= require("immutable")
  var keys = Immutable.Map()
  k=keys.set(1,2)
  var result = null
  k.valueSeq().map(
      function(value) {
          if(value == 2)
              result = value
      }
  )
  return result
  </code></pre>
  
  <p>I would like to stick with the Map data structure, it is used elsewhere in the code.</p>