{"ScriptPreparationCode":"var testSet = new Set();\r\nfor (let i = 1; i \u003C= 100000; i\u002B\u002B) {\r\n testSet.add(i);\r\n}","TestCases":[{"Name":"Array.from()","Code":"const arrayFrom = Array.from(testSet.values());","IsDeferred":false},{"Name":"spread operator","Code":"const arraySpread = [...testSet];","IsDeferred":false},{"Name":"for...of loop","Code":"const arrayForOf = [];\r\nfor (const value of testSet) {\r\n arrayForOf.push(value);\r\n}","IsDeferred":false},{"Name":"iterator.next()","Code":"const arrayWhileNext = [];\r\nlet iterator = testSet.values();\r\nlet next = iterator.next();\r\nwhile (!next.done) {\r\n arrayWhileNext.push(next.value);\r\n next = iterator.next();\r\n}","IsDeferred":false}]}