@pengzhanbo/utils - v3.7.3
    Preparing search index...

    Function upperCase

    • Convert string to uppercase

      将字符串转换为大写

      Parameters

      • str: string

        The string to convert. 要转换的字符串

      Returns string

      The uppercase string with words separated by spaces. 转换后的大写字符串,单词之间用空格分隔

      upperCase('Hello World') // => 'HELLO WORLD'
      upperCase('hello world') // => 'HELLO WORLD'
      upperCase('order-by') // => 'ORDER BY'