JSFiddle - React, Tailwind, and code Playground

by ponyspy

JavaScript

console.log(

[2, 3, 1, 4].reduce(function (res, current, index, array) {
    return res.concat(array);
}, [])

);