Contact: aviboots(AT)netvision.net.il
40,764 questions
53,140 answers
573 users
let arr = ["a", "b", "c", "d"]; const N = 3; arr = [].concat(...Array(N).fill(arr)); console.log(arr); /* run: ["a", "b", "c", "d", "a", "b", "c", "d", "a", "b", "c", "d"] */