Skip to content

compute subtract

kgryte edited this page May 12, 2015 · 1 revision

Computes an element-wise subtraction of a numeric array, where x may be an array of equal length or a numeric value.

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

compute.subtract( data, 5.5 );

Note: mutates the input array.

Clone this wiki locally