JSFiddle - React, Tailwind, and code Playground

by ckissi

JavaScript

const arr = [1, 2, 3, 4, 5]. copyWithin(-2) ;

console. log('ARR',arr);