libram
    Preparing search index...

    Function withChoices

    • Carries out a callback during which a set of choices will be handled as supplied

      Type Parameters

      • T

      Parameters

      • choices: { [choice: number]: string | number }

        Choices to set during callback

      • callback: () => T

        Callback to execute with set choices

      Returns T

      Return value of the supplied callback