Created
October 23, 2019 10:17
-
-
Save JamieMason/0003f6b1c8f0fd8becf4f07e38f76ee9 to your computer and use it in GitHub Desktop.
isAsyncFunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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