Example 1 — Official: Fred
Lowercase a capitalized name’s first letter.
_.lowerFirst('Fred');
// → 'fred' How It Works
- First.
Fbecomesf. - Rest.
redstays as-is. - Result.
fred. - Official. Same as the Lodash docs.

Converts the first character of a string to lowercase and leaves the rest unchanged. Inverse of _.upperFirst. Part of Lodash String (stable — not deprecated).
Pass the string and options shown below. Check the return type before you chain another helper.
Call _.lowerFirst. Start with this line.
_.lowerFirst([string='']) | Call | What it does |
|---|---|
_.lowerFirst([string='']) | Primary signature. |
_.lowerFirst(string) | Transform or inspect a string. |
Prefer import lowerFirst from "lodash/lowerFirst" when you want a smaller bundle.
_.lowerFirst([string='']) | Parameter | Description |
|---|---|
| string | Optional. Input to convert |
| Return Value | Description |
|---|---|
| * | New string (first char lower) |
FredLowercase a capitalized name’s first letter.
_.lowerFirst('Fred');
// → 'fred' F becomes f.red stays as-is.fred.FREDOnly the first character changes — the rest stay uppercase.
_.lowerFirst('FRED');
// → 'fRED' Turn a type/class style name into a JS identifier.
_.lowerFirst('UserName');
// → 'userName'
_.lowerFirst('XMLParser');
// → 'xMLParser' X changes — acronyms need care._.camelCase.Safe no-ops for common edge inputs.
_.lowerFirst('fred');
// → 'fred'
_.lowerFirst('');
// → '' f.''.''.Same input, different helpers.
var s = 'FRED';
_.lowerFirst(s); // → 'fRED'
_.upperFirst(s); // → 'FRED'
_.toLower(s); // → 'fred'
_.lowerCase(s); // → 'fred' _.lowerFirst is a Lodash 4.x String helper. It runs anywhere Lodash runs — modern browsers (CDN or bundle) and Node.js / Bun / Deno with npm install lodash or lodash/lowerFirst. Native idea: s.charAt(0).toLowerCase() + s.slice(1).
Available in [email protected] and lodash/lowerFirst modular import. Works in evergreen browsers and current Node LTS when Lodash is installed.
Bottom line: Safe for production. Use for Pascal→camel tweaks; use toLower/camelCase for broader transforms.
Pad a string on both sides to reach a target length.
CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
9 people found this page helpful