flatten-deeply-nested-array easy way
Code


# Code
```javascript []
/**
 * @param {Array} arr
 * @param {number} depth
 * @return {Array}
 */
var flat = function (arr, n=0) {
  return arr.flat(n)
}
```
['JavaScript']