JSFiddle - React, Tailwind, and code Playground by narthur July 31, 2017 JavaScript var a = [1, 2]; var b = [...a, 3, 4]; console.log(b);