Function titleCase

  • Convert the first letter in each to word upper case

    Parameters

    • value: string

    Returns string

    Example

    titleCase('hello world');
    // 'Hello World'