{"ScriptPreparationCode":"var arr = [];\r\nfor (let i = 0; i \u003C 1000; \u002B\u002Bi) {\r\n arr[i] = i;\r\n}\r\n\r\nfunction doSomething(value) {\r\n return Math.pow(value, 3) * 7;\r\n}","TestCases":[{"Name":"foreach with callBack","Code":"arr.forEach(item =\u003E {\r\n doSomething(item);\r\n});","IsDeferred":false},{"Name":"foreach","Code":"arr.forEach(doSomething);","IsDeferred":false},{"Name":"for with keeping length","Code":"const length = arr.length;\r\nfor (let i = 0; i \u003C length; i\u002B\u002B) {\r\n doSomething(arr[i]);\r\n}","IsDeferred":false},{"Name":"for ","Code":"for (let i = 0; i \u003C arr.length; i\u002B\u002B) {\r\n doSomething(arr[i]);\r\n}","IsDeferred":false},{"Name":"for / of","Code":"for (const value of arr) {\r\n doSomething(value);\r\n}","IsDeferred":false},{"Name":"for / in","Code":"for (const value in arr) {\r\n doSomething(value);\r\n}","IsDeferred":false},{"Name":"map","Code":"arr.map(doSomething);","IsDeferred":false}]}