• value {any}
    • Returns: {boolean}

    Returns true if the value is an [async function][]. This only reports back what the JavaScript engine is seeing; in particular, the return value may not match the original source code if a transpilation tool was used.

    1. util.types.isAsyncFunction(function foo() {}); // Returns false
    2. util.types.isAsyncFunction(async function foo() {}); // Returns true