Skip to main content
Module

x/fastro/server/deps.ts>assertExists

Fast and simple web application framework for deno
Go to Latest
function assertExists
import { assertExists } from "https://deno.land/x/fastro@v0.70.5/server/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>