tldraw/docs/gen/getIncrementedName-function-1.mdx
Steve Ruiz 096df3209b
[1/2] Move docs to brivate (#1640)
This PR moves the docs site to the private repo while keeping the docs
content on the public repo.

### Change Type

- [x] `documentation`
2023-06-23 14:23:14 +00:00

65 lines
773 B
Text

---
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
```