Skip to content

Instantly share code, notes, and snippets.

@thevangelist
Created May 4, 2017 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thevangelist/469d59c79c7b0042880df9cde26ca22e to your computer and use it in GitHub Desktop.
Save thevangelist/469d59c79c7b0042880df9cde26ca22e to your computer and use it in GitHub Desktop.
IIFE-avoidance in ES6
/*
No need to use the ES5 version
(function () {
var tmp = ···;
···
}());
*/
{ // open block
let tmp = ···;
···
} // close block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment