Write a JavaScript function that turns an arbitrarily nested object into a flat array. Too many requests from your network. Please wait a minute.