My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

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!