createId

Function

Return a random number, prefixed with a string. Used for unique identifiers that do not require the rigor of a full UUID - i.e. node id's, process ids etc.

  • createId(prefix: string) : string

Parameters

Parameter Type Default Notes
prefix Optional string "i"

String to prefix the random number with so the result is a valid javascript property

Returns

string

Function defined in packages/common/src/util.ts:112