Q: Implement array.flat() Q: Return only string in a flattened array without using an additional loop after flattening it. Basically, do the string check logic while flattening the array itself.
Utilisateur anonyme
I used recursion for this. As for the second question, could not solve this, so got stuck here.