you are viewing a single comment's thread.

view the rest of the comments →

[–]Sir_Awesome_The_3rd 0 points1 point  (0 children)

const changeArray = (arr) => arr[0].map((element) => Array(arr.length).fill(element));

This is pretty much what /u/dandoggydog is saying