Calculates the negation of all the elements of an array.
The array
const result = Chalkboard.stat.negate([1, -2, 3]); // Returns [-1, 2, -3] Copy
const result = Chalkboard.stat.negate([1, -2, 3]); // Returns [-1, 2, -3]
Calculates the negation of all the elements of an array.