mirror of
https://github.com/toss/es-toolkit.git
synced 2024-12-01 02:33:54 +03:00
456 B
456 B
lowerFirst
Converts the first character of string to lower case.
Signature
function lowerFirst(str: string): string;
Parameters
str
(string
): The string that is to be changed.
Returns
(string
) The string converted.
Examples
import { lowerFirst } from 'es-toolkit/string';
lowerFirst('fred'); // returns 'fred'
lowerFirst('Fred'); // returns 'fred'
lowerFirst('FRED'); // returns 'fRED'