1.0.0 • Published 6 years ago

prevent-flat v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

prevent-flat

The purpose of this library is to prevent TC39 from adding Array.prototype.flat as a replacement names for Array.prototype.flatten. They usually don't listen to popular votes, but they do listen to the Web and usages of JavaScript in the wild. So here's your chance to vote with your code in production. Put this library in your production large-scale website (it's very tiny! won't hurt) and we'll have a compelling case for TC39 not to break backwards compatibility.

Install

<!-- TODO -->

Usage

array.flat() is the same as array[0] so if you have array[0] somewhere, just replace it.

That should do the trick.

License

MIT

1.0.0

6 years ago