Function uncapitalize

  • Category

    Uncapitalizes the first letter of a string.

    Time complexity: O(n)

    Space complexity: O(n)

    Type Parameters

    • T extends string

    Parameters

    • text: T

      Text to uncapitalize

    Returns Uncapitalize<T>

    Uncapitalized string

    String

    Example

    uncapitalize('HELLO'); // hELLO
    

    See

    capitalize for the inverse operation