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