method Assert.prototype.false
Assert.prototype.false(
state: unknown,
message?: string
): void

Asserts that state === false (strict boolean false).

Examples

Example 1

assert.false(1 === 2);
assert.false(Number.isNaN(42), "42 is not NaN");

Parameters

state: unknown

The value to test.

optional
message: string

Optional failure message.

Return Type

void

Usage

import { Assert } from ".";