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

x/dtils/deps.ts>asserts.assertLessOrEqual

The best unofficial library of utilities for Deno applications
Latest
function asserts.assertLessOrEqual
import { asserts } from "https://deno.land/x/dtils@2.6.1/deps.ts";
const { assertLessOrEqual } = asserts;

Make an assertion that actual is less than or equal to expected. If not then throw.

Parameters

actual: T
expected: T
optional
msg: string