List Beautify

List Beautify

Let's assume, you are given an array of arrays of positive/negative integer/float numbers, for example - [[1, 2, 10, 150], [10, 2, 1000, 2], [1, 120, 1, 1000]]. It's always correctly filled: has at least one non-empty inner array.

When you print it as a single object, you receive

example
[[1, 2, 10, 150], [10, 2, 1000, 2], [1, 120, 1, 1000]]
                
or row by row:
example
[1, 2, 10, 150]
[10, 2, 1000, 2]
[1, 120, 1, 1000]
                

Your function should return something from both views and improved:...

You should be an authorized user in order to see the full description and start solving this mission.