Skip to content

compute add

kgryte edited this page May 12, 2015 · 1 revision

Computes an element-wise addition 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.add( data, 5.5 );

Note: mutates the input array.

Clone this wiki locally