I'm wondering if there's a way to determine if a function was defined using async function or async (...) => ... syntax?
I'm looking to implement the function isDefinedWithAsync where:
isDefinedWithAsync(async function() { return null; }) === true;
isDefinedWithAsync(function() { return null; }) === false;
isDefinedWithAsync(async () => null) === true;
isDefinedWithAsync(() => null) === false;
Is it possible to implement isDefinedWithAsync? And if so, how? Thanks!