{"ScriptPreparationCode":"function getRandomInt(max) {\r\n return Math.floor(Math.random() * Math.floor(max));\r\n}\r\n\r\nvar arr = [];\r\nfor(var i = 0; i \u003C 2000; i\u002B\u002B){\r\n arr.push({value:getRandomInt(5000)});\r\n}\r\n\r\n","TestCases":[{"Name":"_.max","Code":"_.max(arr);\r\n_.min(arr);","IsDeferred":false},{"Name":"Math.max","Code":"Math.max(...arr)\r\nMath.min(...arr)","IsDeferred":false},{"Name":"for loop","Code":"let min = 0;\r\nlet max = 0;\r\nfor (let index = 0; index \u003C arr.length; index\u002B\u002B) {\r\n\tconst element = arr[index];\r\n \tif (arr[index] \u003C min) {\r\n \tmin = arr[index];\r\n }\r\n \tif (arr[index] \u003E max) {\r\n \tmax = arr[index];\r\n }\t\r\n}","IsDeferred":false}]}