{"ScriptPreparationCode":" var arr = [];\r\n for (var i = 0; i \u003C 1000; i\u002B\u002B) {\r\n arr[i] = { data: i };\r\n }\r\n \r\n function someFn(i) {\r\n return i.data * 3 * 8;\r\n }","TestCases":[{"Name":"foreach","Code":"arr.forEach(function (item){\r\n someFn(item);\r\n})","IsDeferred":false},{"Name":"for","Code":"for (var i = 0, len = arr.length; i \u003C len; i\u002B\u002B) {\r\n someFn(arr[i]);\r\n}","IsDeferred":false},{"Name":"map","Code":"arr.map(item =\u003E someFn(item))","IsDeferred":false},{"Name":"for..of","Code":"for (const el of arr) {\r\n someFn(el);\r\n}","IsDeferred":false},{"Name":"slice \u002B [x, ...y]","Code":"let f=someFn(arr[0]);\r\nlet rest=arr.slice(1).map(el =\u003E (someFn(el)));\r\nlet result = [f, ...rest];","IsDeferred":false},{"Name":"for (no slice)","Code":"let result = [someFn(arr[0])];\r\nfor (let i=1; i\u003Carr.length; i\u002B\u002B) {\r\n result[i] = someFn(arr[i]);\r\n}","IsDeferred":false},{"Name":"for \u002B push","Code":"let result = [someFn(arr[0])];\r\nfor (let i=1; i\u003Carr.length; i\u002B\u002B) {\r\n result.push(someFn(arr[i]));\r\n}","IsDeferred":false},{"Name":"slice \u002B [x, ...y] v2","Code":"let result = [someFn(arr[0]), ...arr.slice(1).map(el =\u003E (someFn(el)))];","IsDeferred":false},{"Name":"slice \u002B [x, ...y] v3","Code":"let rest=arr.slice(1).map(el =\u003E (someFn(el)));\r\nlet result = [someFn(arr[0]), ...rest];","IsDeferred":false}]}