MCPcopy
hub / github.com/markmap/markmap / getId

Function getId

packages/markmap-common/src/util.ts:5–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3const uniqId = Math.random().toString(36).slice(2, 8);
4let globalIndex = 0;
5export function getId(): string {
6 globalIndex += 1;
7 return `mm-${uniqId}-${globalIndex}`;
8}
9
10export function noop(): void {
11 // noop

Callers 1

constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected