function assertLess
assertLess<T>(): voidMake an assertion that actual is less than expected.
If not then throw.
Examples
Usage
Usage
import { assertLess } from "@std/assert"; assertLess(1, 2); // Doesn't throw assertLess(2, 1); // Throws
Type Parameters
TThe type of the values to compare.
Parameters
Return Type
void