{"ScriptPreparationCode":"var numberOfElements = 50000\r\nvar arr = [];\r\nfor (let i = 0; i \u003C numberOfElements; i\u002B\u002B) arr.push(i);\r\n\r\n\r\nvar set = new Set(arr);","TestCases":[{"Name":"Array - iteration","Code":"for (const x of arr) {}","IsDeferred":false},{"Name":"Set - iteration","Code":"for (const x of set) {}","IsDeferred":false},{"Name":"Array - includes","Code":"const value = numberOfElements - 1;\r\narr.includes(value)","IsDeferred":false},{"Name":"Set - has","Code":"const value = numberOfElements - 1;\r\nset.has(value)","IsDeferred":false},{"Name":"Array - push","Code":"arr.push(numberOfElements \u002B 1)","IsDeferred":false},{"Name":"Set - add","Code":"set.add(numberOfElements \u002B 1)","IsDeferred":false},{"Name":"Array - deletion","Code":"const value = numberOfElements - 1;\r\nconst index = arr.indexOf(value);\r\narr.splice(index, 1);","IsDeferred":false},{"Name":"Set - deletion","Code":"const value = numberOfElements - 1;\r\nset.delete(value);","IsDeferred":false},{"Name":"Converting a Set to an Array","Code":"const array = Array.from(set);","IsDeferred":false}]}