Skip to content

Instantly share code, notes, and snippets.

@gskachkov
Last active July 20, 2017 18:51
Show Gist options
  • Save gskachkov/12cbccf96e1ef5cf1d09bc7183dea301 to your computer and use it in GitHub Desktop.
Save gskachkov/12cbccf96e1ef5cf1d09bc7183dea301 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(v);
// [object AsyncFunction]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment