Contact: aviboots(AT)netvision.net.il
39,938 questions
51,875 answers
573 users
const arr : number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9]; arr.unshift(arr.pop()); console.log(arr); /* run: [9, 1, 2, 3, 4, 5, 6, 7, 8] */