lowerFirst
Lowercase only the first character of a string while preserving the rest, a small helper for identifier and label formatting.
Usage
Lowercases only the first letter of a string, leaving the rest unchanged.
import { lowerFirst } from '@movk/core'
lowerFirst('Foo Bar') // => 'foo Bar'
lowerFirst('FOO BAR') // => 'fOO BAR'
API
lowerFirst(str: string): string
Parameters
str
string required
The string to convert.
Returns
string
Returns the string with the first letter lowercased.
Changelog
No recent changes