Calculates the absolute value of all the elements of an array.
The array
const result = Chalkboard.stat.absolute([-3, 4, -5]); // Returns [3, 4, 5] Copy
const result = Chalkboard.stat.absolute([-3, 4, -5]); // Returns [3, 4, 5]
Calculates the absolute value of all the elements of an array.