assertLessThanOrEqual
Assert that a numeric value is less than or equal to the expected value, with type-narrowing.
import { assertLessThanOrEqual } from "@kensio/smartass";
const errorRate: unknown = 0;
assertLessThanOrEqual(errorRate, 0.01);
// errorRate is now narrowed to number | bigintSource
Section titled “Source”Source file: src/assert/less-than-or-equal/less-than-or-equal.assert.ts
