React native – Detect whether a function is async (using NodeJS)
This is a simple task in a web browser but in NodeJS it makes no distinction: console.log({ // 'Function' in browser, but empty string ('') in NodeJS '(() => {}).constructor.name': (() => {}).constructor.name, '(() => {}).__proto__.constructor.name': (async () => {}).__proto__.constructor.name,…