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

x/justaos/test.deps.ts>assertExists

A command line interface for justaos
Latest
function assertExists
import { assertExists } from "https://deno.land/x/justaos@v0.1.3/test.deps.ts";

Make an assertion that actual is not null or undefined. If not then throw.

Parameters

actual: T
optional
msg: string

Returns

asserts actual is NonNullable<T>