{"ScriptPreparationCode":"// Create sample data\r\nvar array = [1,2,3,4,5,6,7,8,9,0];\r\nfor (let i = 0; i\u003C 100_000; i\u002B\u002B) {\r\n\tarray.push(i % 10);\r\n}\r\n\r\nvar manipulateFn = num =\u003E {\r\n\treturn num * 2 * 3;\r\n}","TestCases":[{"Name":".map","Code":"var newArray = array.map( i =\u003E manipulateFn(i));","IsDeferred":false},{"Name":"for loop","Code":"var newArray = [];\r\nfor (let i=0; i\u003Carray.length; i\u002B\u002B) {\r\n\tnewArray.push(i *2 * 3);\r\n}","IsDeferred":false},{"Name":"for loop with func","Code":"var newArray = [];\r\nfor (let i=0; i\u003Carray.length; i\u002B\u002B) {\r\n\tnewArray.push(manipulateFn(i));\r\n}","IsDeferred":false}]}