isclass  •  isarrow  •  isasync
This is Node.js library that checks whether a value is an async function
npm:
$ npm install isasync --save
yarn:
$ yarn add isasync
const isAsync = require('isasync');
console.log(isAsync("hello world")); // > false
console.log(isAsync(function() {})); // > false
console.log(isAsync(async function() {})); // > true
console.log(isAsync(class {})); // > false
console.log(isAsync(() => {})); // > false
console.log(isAsync(async () => {})); // > true
console.log(isAsync(123)); // > false
console.log(isAsync({})); // > false
console.log(isAsync([])); // > false