incrementString

Function

Given a string, append a - 1 on the end if no number is present otherwise, increment the number

  • incrementString(str: string) : string

Parameters

Parameter Type Default Notes
str Required string

String to increment

Returns

string

Function defined in common/src/utils/increment-string.ts:6