Skip to content

Instantly share code, notes, and snippets.

@JamieMason
Created October 23, 2019 10:17
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 JamieMason/0003f6b1c8f0fd8becf4f07e38f76ee9 to your computer and use it in GitHub Desktop.
Save JamieMason/0003f6b1c8f0fd8becf4f07e38f76ee9 to your computer and use it in GitHub Desktop.
isAsyncFunction
const isAsyncFunction = fn => typeof fn === 'function' && fn.constructor.name === 'AsyncFunction';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment