import { isUnknown } from "https://deno.land/x/unknownutil@v3.18.1/mod.ts";
Assume x
is unknown
and always return true
regardless of the type of x
.
import { is } from "@core/unknownutil";
const a = "a";
if (is.Unknown(a)) {
// a is narrowed to unknown
const _: unknown = a;
}