Test case details

Preparation Code

<script> var slice = Array.prototype.slice,     _slice = [].slice,     wslice = window.Array.prototype.slice; var items = new Array(100); for (var i = 0; i < 100; i++) {     items[i] = i; } function nonnative_slice(obj) {             var items = new Array(obj.length);             for (var i = obj.length; i--; ) {                 items[i] = items[i];             }             return items; } </script>

Test cases

Test #1

Array.prototype.slice.call(items)

Test #2

[].slice.call(items)

Test #3

slice.call(items);

Test #4

_slice.call(items);

Test #5

Array().slice.call(items);

Test #6

window.Array.prototype.slice.call(items);

Test #7

wslice.call(items);

Test #8

items.slice(0)

Test #9

nonnative_slice(items);