JSFiddle - React, Tailwind, and code Playground
by Sinh Nguyen
JavaScript
const x = [1, 3, 5, 7];
var y = x.flatMap(x => [x, x + 1]);
console.log(y);
by Sinh Nguyen
const x = [1, 3, 5, 7];
var y = x.flatMap(x => [x, x + 1]);
console.log(y);