JSFiddle - React, Tailwind, and code Playground

by j08691

JavaScript

var ary = [8,1,2,3,4,5,6,7]
ary.push(ary.shift());
console.log(ary);