Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/merlin/deps.ts>asserts.assertExists

Testing and Benchmarking framework for deno 🧙‍♂️
Latest
function asserts.assertExists
import { asserts } from "https://deno.land/x/merlin@v1.0.7/deps.ts";
const { assertExists } = asserts;

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

Parameters

actual: unknown
optional
msg: string