0

Given an N-dimensional array (0 < N < 5) of integers, flatten it into a 1-dimensional array.
Examples
N: 1
Input: [3, 3, 5, 6, 2, 3, 5]
Output: [3, 3, 5, 6, 2, 3, 5]
N: 2
Input: [[3, 44], [6, 4, 74], [1, 4], [6, 93]
Output: [3, 44, 6, 4, 74, 1, 4, 6, 93]
Remember, this is code-golf, so the co...