title: What's the use of Array.prototype.slice.call(array, 0)?
body: <p>I was just browsing Sizzle's source code and I came across this line of code:</p>
  
  <pre><code>array = Array.prototype.slice.call( array, 0 );
  </code></pre>
  
  <p>I looked up what the function is, but I came to the conclusion that it just returns all elements of the array starting from index 0, and puts the whole into the array, i.e. it doesn't really do anything at all.</p>
  
  <p>What is therefore the use of this line of code? What am I missing?</p>
  
  <p><strong>Edit:</strong> It's line 863 from <a href="https://github.com/jquery/sizzle/blob/master/sizzle.js#L863" rel="noreferrer">https://github.com/jquery/sizzle/blob/master/sizzle.js#L863</a>.</p>