+ 1
Creating a new array.
Let say I have 3 arrays as follows: var arr1=[1,2,4,6,0]; var arr2=[3,9,5,7,1]; var arr3=[1,2,7,4,8,6]; How do I create a new array that will be like var arr5=[0,1,2,3,4,5,6,7,8,9] ? If I concat the three arrays I won't have that. If I filter , my output won't be that . If I slice , still not it. I'm thinking the only solution is to manipulate the data and doing it after 3 or 4 code lines. Using JavaScript. Is There A Faster Way ?🤔
2 Respuestas
+ 2
Timmy Afolami , maybe this way 🐱
https://code.sololearn.com/Wr5bn66Jh8c2/?ref=app
+ 1
TheWh¡teCat 🇧🇬
Thanks a lot.
The method there seems new to me.