In python you can do:
arr = [1,2,3] * 3
print(arr)
output:
[1,2,3,1,2,3,1,2,3]
Is there a concise way of doing this in java script? The best I can think of is something like:
let arr2 = [...arr, ...arr, ...arr]
but if I wanted to do this 100 times it would be impractical. In python I would just multiply it by 100.