Contact: aviboots(AT)netvision.net.il
39,884 questions
51,810 answers
573 users
async function func() { } const isAsync = func.constructor.name === "AsyncFunction"; console.log(isAsync); /* run: true */
const func = async (x, y) => { }; const isAsync = func.constructor.name === "AsyncFunction"; console.log(isAsync); /* run: true */