title: Find the stray number
body: <p>Practicing some katas in Code Wars and ran into this &quot;Find the stray number&quot; - I thought this was a pretty simple exercise (thank God I am started to feel comfortable with these challenges), but I am failing one of the test. Not sure why I am failing the test, nor does the site give me any ideas of what the array is they are passing</p>
  <p>Below is the code that I used - if anyone can help me out that would be great.</p>
  <p>Here is the link to the challenge &amp; question</p>
  <hr />
  <p><a href="https://www.codewars.com/kata/find-the-stray-number/train/javascript" rel="nofollow noreferrer">https://www.codewars.com/kata/find-the-stray-number/train/javascript</a></p>
  <blockquote>
  <p>You are given an odd-length array of integers, in which all of them are the same, except for one single number.</p>
  <p>Complete the method which accepts such an array, and returns that single different number.</p>
  <p>The input array will always be valid! (odd-length &gt;= 3)</p>
  <p>Examples<br />
  [1, 1, 2] ==&gt; 2<br />
  [17, 17, 3, 17, 17, 17, 17] ==&gt; 3</p>
  </blockquote>
  <pre><code>function stray(numbers) {
  let strayChar = numbers[0];
  
   for(let i = 1; i &lt; numbers.length; i++){
    if(strayChar !== numbers[i]){
    return strayChar = numbers[i];
     }
   }
         return 0;
   } 
  </code></pre>