Skip to content

compute nanmax

kgryte edited this page May 12, 2015 · 1 revision

Computes the maximum value of a numeric array ignoring non-numeric values.

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

var max = compute.nanmax( data );
// returns -2
Clone this wiki locally