Permission to Smoosh: granted
npm install babel-plugin-smooshLets intellectuals use Array.prototype.smoosh() andArray.prototype.smooshMap() instead of Array.prototype.flat() andArray.prototype.flatMap().
```
npm i --save-dev babel-plugin-smoosh
Add the following to your .babelrc or .babelrc.js file:
`json`
{
"plugins": ["smoosh"]
}
`js`
const myArray = [1, 2, [3, 4]];
myArray.smoosh(); // [1, 2, 3, 4]
`js``
const myArray = [1, 2, [3, 4];
myArray.smooshMap(x => [x * 2]) // [2, 4, 6, 8]