Variable AsyncFunctionConst

AsyncFunction: any = ...

Shim for allowing async function creation similar to new Function.

Found here: https://davidwalsh.name/async-function-class

Example

const fetchPage = new AsyncFunction("url", "return await fetch(url);");

Generated using TypeDoc