Skip to content

Instantly share code, notes, and snippets.

@gskachkov
Last active July 28, 2017 11:30
Show Gist options
  • Save gskachkov/d5c81b03a81ad6401afe41bce461e40f to your computer and use it in GitHub Desktop.
Save gskachkov/d5c81b03a81ad6401afe41bce461e40f to your computer and use it in GitHub Desktop.
var foo = async function*() {};
typeof foo;
// "function"
foo.toString();
// "async function* () {}"
foo[Symbol.toStringTag];
// "AsyncFunction"
Object.prototype.toString.call(foo);
// [object AsyncFunction]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment