JSFiddle - React, Tailwind, and code Playground
by irinablue
JavaScript
const groups = [1,2,3];
const isUnshift = true;
isUnshift ? groups.unshift(0) : groups.push(0) ;
console.log()
by irinablue
const groups = [1,2,3];
const isUnshift = true;
isUnshift ? groups.unshift(0) : groups.push(0) ;
console.log()