Sollicitatievraag bij appstract consulting

How would you flatten an array in e.g. JavaScript?

Antwoord op sollicitatievraag

Anoniem

21 apr 2017

I would do it by taking an empty array, applying the concat prototype method on the array that needed to be flattened.