Skip to content

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


References

Clone this wiki locally