Converts a matrix to an array.
The matrix
const result = Chalkboard.matr.toArray([[1, 2], [3, 4]]); // Returns [1, 2, 3, 4] Copy
const result = Chalkboard.matr.toArray([[1, 2], [3, 4]]); // Returns [1, 2, 3, 4]
Converts a matrix to an array.