Function iif

  • Return an instance of an inline if class

    Returns

    Type Parameters

    • T

    Parameters

    • truthy: (() => boolean)

      The truthy evaluator for the first if

        • (): boolean
        • Returns boolean

    • value: (() => T)

      Function to return the value if the statement is truthy

        • (): T
        • Returns T

    Returns If<T>

Generated using TypeDoc