> ## 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.

# findLongestWord

> Finds the longest word in a given string.

## Signature

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

## Parameters

* **str**: `string` - The input string.

## Returns

`string` - The longest word found in the string.

## Source

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