{"ScriptPreparationCode":null,"TestCases":[{"Name":"for i of","Code":"let c = 0\r\nconst testArray = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 ]\r\nconst newArray = []\r\nfor (const i of testArray) {\r\n newArray[c\u002B\u002B] = i\r\n}","IsDeferred":false},{"Name":"for i in","Code":"const testArray = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 ]\r\nconst newArray = []\r\nfor (const i in testArray) {\r\n newArray[i] = testArray[i]\r\n}","IsDeferred":false},{"Name":"for i length first","Code":"const testArray = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 ]\r\nconst length = testArray.length\r\nconst newArray = []\r\nfor (let i = 0; i \u003C length; i\u002B\u002B) {\r\n newArray[i] = testArray[i]\r\n}","IsDeferred":false},{"Name":"for i length every","Code":"const testArray = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 ]\r\nconst newArray = []\r\nfor (let i = 0; i \u003C testArray.length; i\u002B\u002B) {\r\n newArray[i] = testArray[i]\r\n}\r\n","IsDeferred":false},{"Name":"while crazy","Code":"const testArray = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 ]\r\nlet i = testArray.length\r\nconst newArray = []\r\nwhile (~--i) {\r\n newArray[i] = testArray[i]\r\n}","IsDeferred":false},{"Name":"while boring","Code":"const testArray = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 ]\r\nlet i = -1\r\nconst newArray = []\r\nwhile (i\u002B\u002B \u003C testArray.length) {\r\n newArray[i] = testArray[i]\r\n}","IsDeferred":false},{"Name":"slice","Code":"const testArray = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 ]\r\nconst newArray = testArray.slice()","IsDeferred":false}]}