Skip to content

compute min

kgryte edited this page May 12, 2015 · 1 revision

Computes the minimum value of a numeric array.

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

var min = compute.min( data );
// returns 2
Clone this wiki locally