title: Can forEach in JavaScript make a return?
body: <p>I wonder if <em>forEach</em> in JavaScript can make a return, here is my code:</p>
  
  <pre><code>var a = [0, 1, 2, 3, 4];
  
  function fn(array) {
    array.forEach(function(item) {
      if (item === 2) return false;
    });
  
    return true;
  }
  
  var ans = fn(a);
  console.log(ans); // true
  </code></pre>
  
  <p>I want to find out if 2 is in my array, if so, return false, but it seems that the <em>forEach</em> function has looped the whole array and ignore return.</p>
  
  <p>I wonder if I can get the answer I want with <em>forEach</em> ( I know I can get what I want using for(..))? dear friend, pls help me, with great thanks!</p>