employer cover photo

appstract consulting

Is this your company?

appstract consulting interview question

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

Interview Answer

Anonymous

Apr 21, 2017

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