{"ScriptPreparationCode":"var fooSet = new Set();\r\nvar ul = document.querySelector(\u0027ul\u0027);\r\nfor(var i=0;i\u003C1000;i\u002B\u002B) {\r\n fooSet.add(i);\r\n ul.appendChild(document.createElement(\u0027li\u0027));\r\n}\r\n\r\nvar listItems = document.querySelectorAll(\u0027li\u0027);","TestCases":[{"Name":"Array.from on NodeList","Code":"var other = Array.from(listItems);","IsDeferred":false},{"Name":"Spread on NodeList","Code":"var other = [...listItems];","IsDeferred":false},{"Name":"[].slice.call","Code":"var other = [].slice.call(listItems);","IsDeferred":false},{"Name":"for each push","Code":"var other = []\r\nlistItems.forEach(item =\u003E other.push(item))","IsDeferred":false},{"Name":"for each cached new Array with know listItems length","Code":"var other = new Array(listItems.length)\r\nlistItems.forEach((item,i) =\u003E other[i] = item)","IsDeferred":false},{"Name":"for loop cached length","Code":"var other = new Array(listItems.length)\r\nfor (let i = 0; i \u003C listItems.length; i\u002B\u002B) {\r\n other[i] = listItems[i];\r\n}\r\n","IsDeferred":false}]}