Skip to content
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


References

Clone this wiki locally