-
Notifications
You must be signed in to change notification settings - Fork 0
isAsync
Subhajit Sahu edited this page Jul 29, 2022
·
2 revisions
Check if value is an async function.
Similar: is, isAsync, isGenerator.
function isAsync(v)
// v: a value
const xfunction = require('extra-function');
xfunction.isAsync(async () => 0);
// → true
xfunction.isAsync(() => 0);
// → false