Skip to content
Advertisement

how do I split array element into more element [closed]

this is my array:

JavaScript

and I want to convert into:

JavaScript

this is my code: (but it doesn’t work]

JavaScript

Advertisement

Answer

You can simply use method from Arrays if lenght of array is always the same

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement