> For the complete documentation index, see [llms.txt](https://jscula.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jscula.gitbook.io/docs/utils/ordinal.md).

# ordinal()

#### `ordinal(number)`

Adds ordinal suffixes to numbers.

```javascript
ordinal(1);  // 1st
ordinal(2);  // 2nd
ordinal(13); // 13th
ordinal(21); // 21st
```
