Skip to content

genNumberKey

Generate a unique numeric key, incrementing with each call.

Usage

ts
import { genNumberKey } from 'rattail'

genNumberKey() // return 0
genNumberKey() // return 1
genNumberKey() // return 2

Return

Type
number