{"ScriptPreparationCode":"function map(arr, callback) {\r\n\tconst _length = arr.length;\r\n\r\n\tconst result = new Array(_length);\r\n\r\n\tfor (let i = 0; i \u003C _length; i\u002B\u002B) {\r\n\t\tresult[i] = callback(arr[i], i, arr);\r\n\t}\r\n\r\n\treturn result;\r\n}\r\n\r\nfunction arrayWithNoLength(arr, callback) {\r\n\tconst result = [];\r\n\r\n\tfor (let i = 0; i \u003C arr.length; i\u002B\u002B) {\r\n\t\tresult.push(callback(arr[i], i, arr));\r\n\t}\r\n\r\n\treturn result;\r\n}\r\n\r\nfunction mapHowArrayMethod(arr, callback) {\r\n\treturn arr.map(callback);\r\n}","TestCases":[{"Name":"MAP","Code":"map(new Array(1000000).fill(1000), (num) =\u003E num * 2);","IsDeferred":false},{"Name":"ARRAY_WITH_NO_LENGTH","Code":"arrayWithNoLength(new Array(1000000).fill(1000), (num) =\u003E num * 2);","IsDeferred":false},{"Name":"MAP_HOW_ARRAY_METHOD","Code":"mapHowArrayMethod(new Array(1000000).fill(1000), (num) =\u003E num * 2);","IsDeferred":false}]}