Skip to main content
Module

x/unknownutil/util.ts

🦕 An utility pack for handling unknown type in deno
Go to Latest
import * as unknownutil from "https://deno.land/x/unknownutil@v3.0.0/util.ts";

Classes

Represents an error that occurs when an assertion fails.

Functions

Asserts that the given value satisfies the provided predicate.

Ensures that the given value satisfies the provided predicate.

Returns the input value if it satisfies the provided predicate, or undefined otherwise.