I was just browsing Sizzle's source code and I came across this line of code:
array = Array.prototype.slice.call( array, 0 );
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.
What is therefore the use of this line of code? What am I missing?
Edit: It's line 863 from https://github.com/jquery/sizzle/blob/master/sizzle.js#L863.