// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.// This module is browser compatible.import{AssertionError}from"./assertion_error.ts"; /** Assertion condition for {@linkcode assertFalse}. */exporttypeFalsy=false|0|0n|""|null|undefined; /** * Make an assertion, error will be thrown if `expr` have truthy value. * * @example * ```ts * import { assertFalse } from "https://deno.land/std@$STD_VERSION/assert/assert_false.ts"; * * assertFalse(false); // Doesn't throw * assertFalse(true); // Throws * ``` */exportfunctionassertFalse(expr:unknown, msg =""):asserts expr isFalsy{if(expr){thrownewAssertionError(msg);}}