Skip to content

compute abs

kgryte edited this page May 12, 2015 · 1 revision

Computes an element-wise absolute value for each element of a numeric array.

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

compute.abs( data );

Note: mutates the input array.

Clone this wiki locally