import { ensure } from "https://deno.land/x/ddc_vim@v3.7.0/deps.ts";
Ensures that the given value satisfies the provided predicate.
import { ensure } from "./util.ts";
import is from "./is.ts";
const a: unknown = "hello";
const _: string = ensure(a, is.String);
Parameters
pred: Predicate<T>
The predicate function to test the value against.