Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/unknownutil/mod.ts>isLike

🦕 An utility pack for handling unknown type in deno
Go to Latest
function isLike
Re-export
import { isLike } from "https://deno.land/x/unknownutil@v2.1.1/mod.ts";

Return true if the type of x follows the type of ref.

Type Parameters

R
T extends unknown

Parameters

ref: R
x: unknown
optional
pred: Predicate<T>