Pergunta de entrevista da empresa Front

How to flatten a nested (recursively nested) array.