Function capitalize

  • Capitalise a string

    Returns

    the string with the first character in uppercase

    Example

    capitalize('hello world') === 'Hello world'
    

    Example

    capitalize('Hello world') === 'Hello world'
    

    Parameters

    • string: string

      string to capitalise

    Returns string

Generated using TypeDoc