{"ScriptPreparationCode":"var manyItemSet = new Set(Array.from({ length: 10000 }, (_, i) =\u003E i));\r\nvar arr = Array.from(manyItemSet);","TestCases":[{"Name":"for of: many items","Code":"let result = 0;\r\nfor (const item of manyItemSet) {\r\n result \u002B= item;\r\n}\r\n","IsDeferred":false},{"Name":"convert to array: many items","Code":"let result = 0;\r\nlet l = arr.length;\r\nfor (let i = 0; i \u003C l; i\u002B\u002B) {\r\n result \u002B= arr[i];\r\n}","IsDeferred":false},{"Name":"native iterator: many items","Code":"let result = 0;\r\nlet val = null;\r\nconst iter = manyItemSet.values();\r\nwhile (!(val = iter.next()).done) {\r\n result \u002B= val.value;\r\n}\r\n","IsDeferred":false},{"Name":"native iterator w/ size: many items:","Code":"let result = 0;\r\nlet iter = manyItemSet.values();\r\nfor (let i = manyItemSet.size; i--;) {\r\n result \u002B= iter.next().value;\r\n}","IsDeferred":false}]}