array.prototype.flatmap
An ES2019 spec-compliant Array.prototype.flatMap shim/polyfill/replacement that works as far down as ES3.
npm install array.prototype.flatmap An ES2019 spec-compliant Array.prototype.flatMap shim/polyfill/replacement that works as far down as ES3.
npm install array.prototype.flatmap