Skip to content

compute max

kgryte edited this page May 12, 2015 · 1 revision

Computes the maximum value of a numeric array.

var data = [ 2, 4, 2, 7, 3 ];

var max = compute.max( data );
// returns 7
Clone this wiki locally