smoosh-pollyfill

Hey friend. Sad that TC39 didn't go with smoosh? Already baked it in to your business critical application, but the F key on your MacBook Pro 2016+ is broken, so you can't find+replace it?

Usage no npm install needed!

<script type="module">
  import smooshPollyfill from 'https://cdn.skypack.dev/smoosh-pollyfill';
</script>

README

Smoosh Pollyfill

Hey friend. Sad that TC39 didn't go with smoosh? Already baked it in to your business critical application, but the F key on your MacBook Pro 2016+ is broken, so you can't find+replace it?

You don't have to worry what a bunch of "industry professionals" say. "Web standards" are merely the painted lines on a road that we all agree to follow.

You're an adult. You can do what you want.

Fork reality and use smoosh today!

  1. npm install --save smoosh-pollyfill
  2. Use smoosh any way you'd use [].flat() or [].flatMap()
let smooshed = [1,[2,3,4,5]].smoosh(); // [1,2,3,4,5]

Hey, no worries, friend. You keep doing your thing.