Those infuriate me so much when I need a slight modification to the behavior of a third party library. Leaves no option but forking. There are such better ways to achieve encapsulation in modern JS.
motorest · 17h ago
> There are such better ways to achieve encapsulation in modern JS.
There aren't that many options even in modern JavaScript. You have ES6 modules, store state in a global map, what else?
https://developer.mozilla.org/en-US/docs/Glossary/IIFE
There aren't that many options even in modern JavaScript. You have ES6 modules, store state in a global map, what else?