import { isNull } from "https://deno.land/x/unknownutil@v3.18.1/is.ts";
Return true
if the type of x
is null
.
import { is } from "@core/unknownutil";
const a: unknown = null;
if (is.Null(a)) {
// a is narrowed to null
const _: null = a;
}