@yesstudio/yes-utils
    Preparing search index...

    Function capitalise

    • Converts the first character of string to upper case.

      Type Parameters

      • T extends string
      • U = Capitalize<T>

      Parameters

      • string: T

        The string to convert.

      Returns U

      Returns the capitalised string.

      capitalise('hello, world!')
      // => 'Hello, world!'