isAsyncFunction
Checks if the given argument is an async function.
- Use
Object.prototype.toString()andFunction.prototype.call()and check if the result is'[object AsyncFunction]'.
Checks if the given argument is an async function.
Object.prototype.toString() and Function.prototype.call() and check if the result is '[object AsyncFunction]'.