function assertFalse
assertFalse(expr: unknown,msg?): asserts expr is FalsyMake an assertion, error will be thrown if expr have truthy value.
Examples
Example 1
Example 1
import { assertFalse } from "@std/assert/assert_false"; assertFalse(false); // Doesn't throw assertFalse(true); // Throws
Parameters
expr: unknownoptional
msgReturn Type
asserts expr is Falsy