lowercaseFirstLetter

Lowercase the first letter of the given string.

Usage Scenarios

  • Text Formatting: When converting titles or names to a specific case style.
  • Data Normalization: In data processing, standardize the case of strings.

Example

import { lowercaseFirstLetter } from 'funtool';

lowercaseFirstLetter('Hello'); // ✅ 'hello'

Signature

function lowercaseFirstLetter(str: string): string

Parameters

  • str ( string ): The input string to lowercase the first letter.

Returns

  • ( string ): A new string with the first letter lowercased.