Contact: aviboots(AT)netvision.net.il
43,946 questions
57,360 answers
573 users
async function func() { } const isAsync = func.constructor.name === "AsyncFunction"; console.log(isAsync); /* run: true */
const func = async (a, b) => { }; const isAsync = func.constructor.name === "AsyncFunction"; console.log(isAsync); /* run: true */