title: Using jasmine to compare arrays fails in ie8
body: <p>Apparently ie8 has three properties that get appended to the resulting array from a call to <code>String.prototype.match()</code>: </p>
  
  <p><code>input</code>, <code>index</code> and <code>lastIndex</code></p>
  
  <p>(<a href="http://msdn.microsoft.com/en-us/library/7df7sf4x%28v=vs.94%29.aspx" rel="nofollow">MSDN Documentation</a>)</p>
  
  <p>The result is that array comparison fails when using Jasmine's <code>.toEqual()</code> matcher.</p>
  
  <p>I'm still working my way up the learning curve on unit testing, so I'm just curious of what the right way is to do deal with this failure.</p>
  
  <p>The following works but seems a bit lame:</p>
  
  <pre><code> numArray = str.match(/\d+(\.\d+)?/g);
   if (numArray &amp;&amp; numArray.input) {
        delete numArray.index;
        delete numArray.input;
        delete numArray.lastIndex;
   }
  </code></pre>