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

    uncapitalize('HELLO'); // hELLO
    

    capitalize for the inverse operation