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

    Function upperCase

    • Convert string to uppercase

      将字符串转换为大写

      Parameters

      • str: string

        要转换的字符串

      Returns string

      转换后的大写字符串,单词之间用空格分隔

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