Looking for assistance with repeating numbers in an array three times? Here's the example array:
var array = [1,2,3,4,5,6,7,8,9,10...]
To repeat each number three times in a loop and create a new array like this:
var newarray = [1,1,1,2,2,2,3,3,3,4,4,4,5,5,5,6,6,6...]
If you have any ideas on how to achieve this, I would greatly appreciate it! Thank you!!