Skip to content

Instantly share code, notes, and snippets.

@bathos
Created April 8, 2018 06:15
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 bathos/6bb1e5ef92d2c8f89363c0931d048caf to your computer and use it in GitHub Desktop.
Save bathos/6bb1e5ef92d2c8f89363c0931d048caf to your computer and use it in GitHub Desktop.
function-types-kinda.md
FK Cstr TM: Lexical TM: Global / Strict
normal cstr - function() {}; new Function
normal no () => {} x() {}
classConstructor cstr - class {}
classConstructor no - -
generator cstr - -
generator no - function * () {}; * x() {}
async cstr - -
async no async () => {} async function() {}; async x() {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment