MCPcopy Create free account
hub / github.com/devexperts/dx-platform / randomId

Function randomId

packages/utils/src/string/string.ts:34–37  ·  view source on GitHub ↗
(prefix: string | number = '', postfix: string | number = '')

Source from the content-addressed store, hash-verified

32 * Generate a unique id
33 */
34export function randomId(prefix: string | number = '', postfix: string | number = ''): string {
35 const id = ++uniqueIdCounter;
36 return `${prefix}${id}${postfix}`;
37}
38
39/**
40 * Capitalizes given string

Callers 1

string.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected