title: The integers in the array are either entirely odd or entirely even except for a single integer. Retrieve this single integer. JS
body: <p>You are given an array (which will have a length of at least 3, but could be very large) containing integers. The integers in the array are either entirely odd or entirely even except for a single integer N. Write a method that takes the array as an argument and returns N.</p>
  
  <p>For example:
  [2, 4, 0, 100, 4, 11, 2602, 36]
  Should return: 11</p>
  
  <p>My test cases that need to work:</p>
  
  <pre><code>Test.assertEquals(findOutlier([0, 1, 2]), 1)
  Test.assertEquals(findOutlier([1, 2, 3]), 2)
  Test.assertEquals(findOutlier([2,6,8,10,3]), 3)
  Test.assertEquals(findOutlier([0,0,3,0,0]), 3)
  Test.assertEquals(findOutlier([1,1,0,1,1]), 0)
  </code></pre>
  
  <p>My code so far, that doesn't seem to work:</p>
  
  <pre><code>function findOutlier(integers){
      var evens = [];
      var odds = [];
      for (var i = 0; i &lt; integers.length; i++) {
          if (integers[i] % 2) {
              evens.push(integers[i]);
          } else {
              odds.push(integers[i]);
          }
      }
      var elen = evens.length;
      var olen = odds.length
  
      if (elen &gt; olen) {
          return odds;
      } else {
          return evens;
      }
  }
  </code></pre>
  
  <p>What do I need to change with this code please?</p>