getIncrementedName

See source code

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

function getIncrementedName(name: string, others: string[]): string

Parameters

NameDescription

name

string

The name to increment.

others

string[]

The array of existing names.

Returns

string
Prev
getFreshUserPreferences
Next
getPerfectDashProps