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

# reverseWords

> Reverses the order of words in a string.

## Signature

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

## Parameters

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

## Returns

`string` - The string with the order of words reversed.

## Source

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