JSFiddle - React, Tailwind, and code Playground by uiwwnw October 14, 2019 JavaScript 1.7 const a = [1,2,3]; console.log(Array.of(...a.length.repeat(4)))