Sign in
Log inSign up

Do ES6 Modules make the case of IIFEs obsolete?

Helen Seligstein's photo
Helen Seligstein
·Nov 8, 2016

IIFEs are generally used as a design pattern for providing “privacy” to an extent through anonymous closures. Does the emergence of ES6 modules make the usage of IIFEs obsolete?

Or do you still have use cases for IIFEs? If yes, an example to drive your case would be awesome!