Function sentenceCase

  • Converts only the first character of the given string to upper case. Note that the rest of the characters are preserved.

    Returns

    Returns the sentence string.

    Example

    sentenceCase('a test')
    // 'A test'

    sentenceCase('TEST')
    // 'TEST'

    See

    capitalize

    Parameters

    • s: string

      The string

    Returns string

Generated using TypeDoc