• Returns the first letter uppercase representation of the given string

    Parameters

    • Optionaltext: null | string

      the source string to check

    Returns string | undefined | null

    the first letter uppercase representation of the given string

    capitalizeFirst('fooBar');    // 'FooBar'