{"ScriptPreparationCode":null,"TestCases":[{"Name":"slice() with map()","Code":"const length = 1000;\r\nconst arrayBuffer = new ArrayBuffer(length);\r\nconst array = new Uint8Array(arrayBuffer);\r\n\r\nfor (let i = 0; i \u003C length; i\u002B\u002B) {\r\n array[i] = 22;\r\n}\r\n\r\nconst dataView = new DataView(arrayBuffer);\r\nconst transferArray = new Uint8Array(dataView);\r\nconst resultArray = [...transferArray].map(Boolean);","IsDeferred":false},{"Name":"slice() with for loop","Code":"const length = 1000;\r\nconst arrayBuffer = new ArrayBuffer(length);\r\nconst array = new Uint8Array(arrayBuffer);\r\n\r\nfor (let i = 0; i \u003C length; i\u002B\u002B) {\r\n array[i] = 22;\r\n}\r\n\r\nconst dataView = new DataView(arrayBuffer);\r\nconst transferArray = new Uint8Array(dataView);\r\nconst resultArray = [...transferArray];\r\n\r\nfor (let i = 0; i \u003C length; i\u002B\u002B) {\r\n\tresultArray[i] = Boolean(resultArray[i]);\r\n}","IsDeferred":false}]}