import { isAsyncFunction } from "https://deno.land/x/unknownutil@v3.18.0/is.ts";
Return true
if the type of x
is function
(async function).
import { is } from "@core/unknownutil";
const a: unknown = async () => {};
if (is.Function(a)) {
// a is narrowed to (...args: unknown[]) => Promise<unknown>
const _: ((...args: unknown[]) => unknown) = a;
}