Skip to main content
Module

x/silicon/deps.ts>assertExists

Deno module to generate images from source code using Aloxaf/silicon.
Go to Latest
function assertExists
import { assertExists } from "https://deno.land/x/silicon@v0.0.4/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>