text: // implement Array.flat() recursively where depth is the second argument
  function flatDeep(arr, depth = 1) {
  	const result = []
  
  	for(let item of arr) {
  		if(Array.isArray(item) && depth > 0) {
  			result.push(...flatDeep(item, depth - 1))
  		} else {
  			result.push(item)
  		}
  	}
  
  	return result
  }