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