Skip to content

Instantly share code, notes, and snippets.

@mikeapr4
Created April 14, 2019 00:50
Show Gist options
  • Save mikeapr4/d436ed21f5ebcefc57d05d0909913ffb to your computer and use it in GitHub Desktop.
Save mikeapr4/d436ed21f5ebcefc57d05d0909913ffb to your computer and use it in GitHub Desktop.
const AsyncFunction = (async () => {}).constructor;
console.log((() => {}) instanceof AsyncFunction); // false
console.log((async () => {}) instanceof AsyncFunction); // true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment