{"ScriptPreparationCode":null,"TestCases":[{"Name":"Set in the loop","Code":"const dataset = {data:[]};\r\nfor(var i=0; i\u003C1000; i\u002B\u002B){\r\n dataset.data = [...new Set([...dataset.data, i, (i\u002B1)])];\r\n}","IsDeferred":false},{"Name":"set after the loop","Code":"const dataset = {data:[]};\r\nfor(var i=0; i\u003C1000; i\u002B\u002B){\r\n dataset.data.push(i);\r\n dataset.data.push(i\u002B1);\r\n}\r\ndataset.data = [...new Set([...dataset.data])]","IsDeferred":false}]}