Except that
really doesn’t pan out well here: it’s not just one or two things that need patching, it’s a
lot, and the patching will slow some extremely common operations down quite a bit (sometimes immensely), and it’ll still be incomplete because there are syntax elements to it (e.g. for..of) that can’t be polyfilled.
Thus, for as long as you want to support a certain vintage of browser, you’re very commonly better to just write things in the old way—which here means using Map.prototype.forEach instead of Map.prototype.{entries, keys, values} and/or for..of loops.