---
title: "lowerFirst"
description: "Lowercase only the first character of a string while preserving the rest, a small helper for identifier and label formatting."
canonical_url: "https://core.mhaibaraai.cn/en/docs/transformers/string/lower-first"
---
# 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.

```ts
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

See commit history for [src/transformers/string/lowerFirst.ts](https://github.com/mhaibaraai/movk-core/commits/main/src/transformers/string/lowerFirst.ts).

---

- [GitHub](https://github.com/mhaibaraai/movk-core/blob/main/src/transformers/string/lowerFirst.ts)


## Sitemap

See the full [sitemap](https://core.mhaibaraai.cn/sitemap.md) for all pages.
