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

    Function capitalize

    • First letter uppercase, other lowercase

      首字母大写,其余小写

      Parameters

      • s: string

        The string to capitalize. 要首字母大写的字符串

      Returns string

      The capitalized string. 首字母大写的字符串

      capitalize('hello') // 'Hello'
      capitalize('WORLD') // 'World'