"Restructure" an array

Good morning

I am seeking help / advice to restructure an array :

My current output is :

I would like to have it structured like the result below :

Which function would do this job ?
Thanks a lot !

You can use Map function for this, based on the screenshot you have shared,

Something like this should work,


You can check Array functions page for more details.

1 Like