// package
is-async-function
type: "module"
// preferences
// replacements (1)
snippet::is-async-function
Simple or drop-in replacementThis package is no longer necessary. You can use `typeof` and `Object.prototype.toString.call` to check if it's an async function
// example
const isAsyncFunction = (obj) =>
typeof obj === 'function' &&
Object.prototype.toString.call(obj) ===
'[object AsyncFunction]';