---
title: getIncrementedName
status: published
category: editor
group: Function
author: api
date: 06/23/2023
order: 44
---<Small>Public Function</Small>

Get an incremented name (e.g. New page (2)) from a name (e.g. New page), based on an array of existing names.


##### Parameters


<ParametersTable>

<ParametersTableRow>
<ParametersTableName>

`name`

</ParametersTableName>
<ParametersTableDescription>

```ts
string
```

The name to increment.




</ParametersTableDescription>
</ParametersTableRow>
<ParametersTableRow>
<ParametersTableName>

`others`

</ParametersTableName>
<ParametersTableDescription>

```ts
string[]
```

The array of existing names.




</ParametersTableDescription>
</ParametersTableRow>
</ParametersTable>

##### Returns


```ts
string
```

