@oazmi/kitchensink - v0.9.13
    Preparing search index...

    Function toUpperOrLowerCase

    • a shorthand function for either getting the upper or lower case of a string str, based on the numeric option.

      options:

      • option > 0 => input string is turned to uppercase
      • option < 0 => input string is turned to lowercase
      • option = 0 => input string is unmodified

      Parameters

      • str: string
      • option: -1 | 0 | 1

      Returns string