---
jsApi: true
title: "[F] reducePathComponents"

---
```ts
reducePathComponents(components): string[]
```

Reduce an array of path components to a more simplified path by navigating any
`"."` or `".."` entries in the path.

## Parameters

| Parameter | Type |
| :------ | :------ |
| `components` | readonly `string`[] |

## Returns

`string`[]
