title: How to loop through Immutable List like forEach?
body: <p>I would like to loop through Immutable <code>List</code>, I used <code>List.map</code> to do it, it can be worked, but not good. is there are a better way? Because I just check each element in array, if the element match my rule, I do something, just like <code>Array.forEach</code>, I don't want to return anything like <code>Array.map</code>.</p>
  
  <p>for example, it is my work now:</p>
  
  <pre><code>let currentTheme = '';
  let selectLayout = 'Layout1';
  let layouts = List([{
    name: 'Layout1',
    currentTheme: 'theme1'
  },{
    name: 'Layout2',
    currentTheme: 'theme2'
  }])
  
  
  layouts.map((layout) =&gt; {
    if(layout.get('name') === selectLayout){
       currentTheme = layout.get('currentTheme');
    }
  });
  </code></pre>