{"ScriptPreparationCode":"var items = [{\r\n val: 7\r\n },\r\n {\r\n val: 9\r\n },\r\n {\r\n val: 8\r\n },\r\n {\r\n val: 3\r\n },\r\n {\r\n val: 12\r\n },\r\n {\r\n val: 34\r\n },\r\n {\r\n val: 7\r\n },\r\n {\r\n val: 512\r\n }\r\n]","TestCases":[{"Name":"Map and Math.min","Code":"Math.min(...items.map(item =\u003E item.val))","IsDeferred":false},{"Name":"Reduce without initial value","Code":"items.reduce((acc, current) =\u003E acc \u003C current.val ? acc : current.val)","IsDeferred":false},{"Name":"Reduce with initial value","Code":"items.reduce((acc, current) =\u003E acc \u003C current.val ? acc : current.val, items[0].val)","IsDeferred":false},{"Name":"Reduce without initial value 2","Code":"items.reduce((acc, current) =\u003E acc \u003E current.val ? current.val : acc)","IsDeferred":false}]}