Flattens an array up to the specified depth.
Input array
Depth to flatten
Flattened array
flattenDepth([1,[2,[3]]], 1); // [1,2,[3]] Copy
flattenDepth([1,[2,[3]]], 1); // [1,2,[3]]
1.2.0
Flattens an array up to the specified depth.