{"ScriptPreparationCode":"var arrays = Array.from({ length: 1000 }).map(() =\u003E new Array((Math.random() * 1000 | 0)).fill(0));\r\nfunction min_one(arrays) {\r\n return Math.min(...arrays.map(arr =\u003E arr.length));\r\n}\r\nfunction min_two(arrays) {\r\n \tvar smallest = arrays[0].length;\r\n\tfor (var i = 1; i \u003C arrays.length; i\u002B\u002B) {\r\n var arr_len = arrays[i].length;\r\n if (arr_len \u003C smallest) smallest = arr_len;\r\n\t}\r\n return smallest;\r\n}","TestCases":[{"Name":"Math.min with spread and map","Code":"min_one(arrays);","IsDeferred":false},{"Name":"For loop with bitwise min","Code":"min_two(arrays);","IsDeferred":false}]}