Skip to content

genStringKey

Generate a unique string key by incrementing a numeric value and converting it to a string.

Usage

ts
import { genStringKey } from 'rattail'

genStringKey() // return 'generated-key-0'
genStringKey() // return 'generated-key-1'
genStringKey() // return 'generated-key-2'

Return

Type
string