JSFiddle - React, Tailwind, and code Playground

by roshan100kar

JavaScript

const arr = [1, 2, 3, 4];
const [a, ,b, ,c] = ar;
console.log(a, b, c);