Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/iter/test_deps.ts>assert

A bunch of utilities for working with iterables, many inspired by the native array methods.
Latest
function assert
import { assert } from "https://deno.land/x/iter@v3.2.3/test_deps.ts";

Make an assertion, error will be thrown if expr does not have truthy value.

Parameters

expr: unknown
optional
msg = [UNSUPPORTED]

Returns

asserts expr