Skip to content

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


References

Clone this wiki locally