Strings.uncapitalize()
Syntax
function uncapitalize(string: string): string
Returns a new string with the first letter lowercased.
Parameters | |
string
|
The string whose first letter to uncapitalize. |
Example
import { Strings } from 'potence';
Strings.uncapitalize('Hello'); // -> 'hello'
Remarks
If the first character in the string is not a letter, or if it is a lowercase letter, this function will return the original string.
Contrast Strings.capitalize()
.