Function ok

  • Assert that a value is truthy: everything except false, 0, -0, 0n, null, undefined, NaN, or empty string.

    Parameters

    • value: any
    • title: string = 'should be truthy'

    Returns void

    Throws

    Assertion

Generated using TypeDoc