Domanda di colloquio di Razorpay

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.

Risposta di colloquio

Anonimo

1 dic 2022

I used recursion for this. As for the second question, could not solve this, so got stuck here.