{"ScriptPreparationCode":null,"TestCases":[{"Name":"max","Code":"const series = [ { x: \u0027foo\u0027, y: [ 123, 234 ] }, { x: \u0027bar\u0027, y: [ 234, 123, 345 ] } ];\r\nMath.max(...series.map(({ y }) =\u003E Math.max(...y)));","IsDeferred":false},{"Name":"flat","Code":"const series = [ { x: \u0027foo\u0027, y: [ 123, 234 ] }, { x: \u0027bar\u0027, y: [ 234, 123, 345 ] } ];\r\nMath.max(...series.map(({ y }) =\u003E y).flat());","IsDeferred":false},{"Name":"apply","Code":"const series = [ { x: \u0027foo\u0027, y: [ 123, 234 ] }, { x: \u0027bar\u0027, y: [ 234, 123, 345 ] } ];\r\nMath.max.apply(\r\n null,\r\n series.map(({ y }) =\u003E Math.max.apply(null, y))\r\n);","IsDeferred":false},{"Name":"reduce","Code":"const series = [ { x: \u0027foo\u0027, y: [ 123, 234 ] }, { x: \u0027bar\u0027, y: [ 234, 123, 345 ] } ];\r\nseries.reduce((y1, { y }) =\u003E Math.max(y1, y.reduce((a, b) =\u003E Math.max(a, b))), 0)","IsDeferred":false}]}