JSFiddle - React, Tailwind, and code Playground
JavaScript
const myarr = [1, 4, [5,6,7, [8, 18, [34,177,[98,[210,[213]]]]]]];
console.log(myarr.flat(Infinity))
const myarr = [1, 4, [5,6,7, [8, 18, [34,177,[98,[210,[213]]]]]]];
console.log(myarr.flat(Infinity))