{"ScriptPreparationCode":"var array = [];\r\n(function(theArray) {\r\n for (var i = 0, L = 10000; i \u003C L; i \u002B= 1) {\r\n array.push({\r\n creationIndex: i,\r\n someStringifiedNumber: (Date.now() \u002B \u0027|\u0027 \u002B Math.random())\r\n });\r\n }\r\n})(array);\r\nvar result;","TestCases":[{"Name":"for","Code":"var someValuesArray = [];\r\nfor (var i = 0, L = array.length; i \u003C L; i\u002B\u002B) {\r\n var someVar = array[i];\r\n var someValue = someVar.creationIndex \u002B someVar.someStringifiedNumber;\r\n someValuesArray.push(someValue);\r\n}\r\nresult = someValuesArray;","IsDeferred":false},{"Name":"for (less closure)","Code":"var someValuesArray = [];\r\nvar someVar;\r\nvar someValue;\r\nfor (var i = 0, L = array.length; i \u003C L; i\u002B\u002B) {\r\n someVar = array[i];\r\n someValue = someVar.creationIndex \u002B someVar.someStringifiedNumber;\r\n someValuesArray.push(someValue);\r\n}\r\nresult = someValuesArray;","IsDeferred":false},{"Name":"for of","Code":"var someValuesArray = [];\r\nfor (var someVar of array) {\r\n var someValue = someVar.creationIndex \u002B someVar.someStringifiedNumber;\r\n someValuesArray.push(someValue);\r\n}\r\nresult = someValuesArray;","IsDeferred":false},{"Name":"for of (less closure)","Code":"var someValuesArray = [];\r\nvar someValue\r\nfor (var someVar of array) {\r\n someValue = someVar.creationIndex \u002B someVar.someStringifiedNumber;\r\n someValuesArray.push(someValue);\r\n}\r\nresult = someValuesArray;","IsDeferred":false},{"Name":"forEach","Code":"var someValuesArray = [];\r\narray.forEach(function(someVar) {\r\n var someValue = someVar.creationIndex \u002B someVar.someStringifiedNumber;\r\n someValuesArray.push(someValue);\r\n});\r\nresult = someValuesArray;","IsDeferred":false},{"Name":"forEach (less closure)","Code":"var someValuesArray = [];\r\nvar someValue;\r\narray.forEach(function(someVar) {\r\n someValue = someVar.creationIndex \u002B someVar.someStringifiedNumber;\r\n someValuesArray.push(someValue);\r\n});\r\nresult = someValuesArray;","IsDeferred":false},{"Name":"reduce","Code":"var someValuesArray = array.reduce(function(valuesArray, someVar) {\r\n var someValue = someVar.creationIndex \u002B someVar.someStringifiedNumber;\r\n valuesArray.push(someValue);\r\n return valuesArray;\r\n}, []);\r\nresult = someValuesArray;","IsDeferred":false},{"Name":"reduce (less closure)","Code":"var someValuesArray = [];\r\nvar someValue;\r\narray.reduce(function(valuesArray, someVar) {\r\n someValue = someVar.creationIndex \u002B someVar.someStringifiedNumber;\r\n valuesArray.push(someValue);\r\n return valuesArray;\r\n}, someValuesArray);\r\nresult = someValuesArray;","IsDeferred":false}]}