libram
    Preparing search index...

    Function withChoice

    • Carries out a callback during which a choice will be handled as supplied

      Type Parameters

      • T

      Parameters

      • choice: number

        Choice to set during callback

      • value: string | number

        How to handle choice during callback

      • callback: () => T

        Callback to execute with set properties

      Returns T

      Return value of the supplied callback