inArray returns -1 in each loop with stirngs
<p>I have two arrays containing string values (newValues and oldValues). I iterate over the oldValues array with jquery each and check the value against the newValues array. However even if the value exists in the newValues array, it is only found if I do a toString first. IE Debugger Console howerver says, that this is already a string (and thats what I expect too).</p>

<p>Code:</p>

<pre><code>$(oldValues).each(function () {
   // always fails (debug snapshot taken here)
   if (jQuery.inArray(this, newValues) === -1) { 
      // ...
   }
});
</code></pre>

<p><img src="http://i.stack.imgur.com/2MMGZ.jpg" alt="IE F12 Debugger Console"></p>

<p>Why do I have to do a toString first, even when <em>this</em> is already of type string? Has this something to do with the jquery each? </p>

<p>All similar questions I've found had to do with type mismatch, but this isn't the case here, right?</p>
