import { isUndefined } from "https://deno.land/x/unknownutil@v3.18.0/mod.ts";
Return true
if the type of x
is undefined
.
import { is } from "@core/unknownutil";
const a: unknown = undefined;
if (is.Undefined(a)) {
// a is narrowed to undefined
const _: undefined = a;
}