Function ifNotExistsThen

Executes a callback if the value does not exist (is null or undefined)

  • Type Parameters

    • T

      The type of the value

    Parameters

    • callback: (() => void)

      The callback function to execute

        • (): void
        • Returns void

    • Optionalvalue: T

      The value to check (optional)

    Returns void