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