---
url: "https://vueda.dev/v3/reference/api/js/utils/errors/FormValidationError/methods/extractObjectPaths.md"
title: "extractObjectPaths"
---

# extractObjectPaths

## Overview

Extracts object paths (those ending with a specific suffix, like `.detail`).

## Signature

`extractObjectPaths(paths, suffix)`

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| <span id="param-paths">paths</span> | `string[]` | yes | Paths to process. |
| <span id="param-suffix">suffix</span> | `string` | yes | The suffix to look for. |

### Returns

`string[]`

Array of object paths.

## Source

`client/lib/utils/errors.js:233`
