lowerFirst es-toolkit
Converts the first character of a string to lowercase.
Usage
lowerFirst(str)
Use lowerFirst when you want to make only the first letter of a string lowercase. The remaining characters are kept as-is. It's useful for creating camelCase variable names or property names.
It correctly handles empty strings and single-character strings.
You can use it for camelCase conversion.
It can also be used for API responses or data transformation.
Parameters
strstringrequired
The string to convert the first character to lowercase.
Returns
Returns a new string with the first character converted to lowercase.
Source: es-toolkit
Re-exported verbatim from es-toolkit. Implementation, edge cases, and performance behavior are owned upstream. This page mirrors the documentation at the pinned version; the linked source is authoritative.