rhodonite
    Preparing search index...

    Function defaultValue

    • Returns a default value if the provided value is null or undefined

      Type Parameters

      • T

        The type of the value

      Parameters

      • defaultValue: T

        The default value to return

      • Optionalvalue: T

        The value to check (optional)

      Returns T

      The value if it exists, otherwise the default value