Search
Complete the JavaScript function to flatten a multi-dimensional array into a single-dimensional array.
For example: