• Returns the capitalized string

    Example

    capitalize('foo bar'); // 'Foo bar'
    

    Example

    capitalize('hello world', true); // 'Hello World'
    

    Parameters

    • str: string
    • Optional allWords: boolean = false

    Returns string

Generated using TypeDoc