> ## Documentation Index
> Fetch the complete documentation index at: https://kk-83bff226.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# toTitleCase

> Converts a string to title case.

## Signature

```typescript path=null start=null theme={null}
toTitleCase(str: string): string
```

## Parameters

* **str**: `string` - The string to be converted.

## Returns

`string` - The input string converted to title case.

## Example

```typescript path=null start=null theme={null}
const result = toTitleCase('hello world')
console.log(result) // 'Hello World'
```

## Source

Defined in [string.ts:44](https://github.com/koji/ichigyou/blob/main/src/string.ts#L44)
