Polyfill
サポートされていない環境で、その機能を使用するためのlibrary
新しい機能も、古い機能の組み合わせで実装できる
proposal段階の機能を早く使いたい、というニーズなどもある
Remy Sharpが草案
「Polyfill」という言葉の由来
Poly meaning it could be solved using any number of techniques - it wasn't limited to just being done using JavaScript, and fill would fill the hole in the browser where the technology needed to be. ref
例
flatMapがない環境をtargetにcompileする時に、map().flat()にcompileするとか
参考
What is a Polyfill?
Remy Sharpのブログ
2010/10/8公開
特に何か面白いことが書いているわけでもないmrsekut.icon
https://www.mizdra.net/entry/2020/12/05/234806
まとまっていてよい
https://en.wikipedia.org/wiki/Polyfill_(programming)