Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
3
const
uniqId = Math.random().toString(36).slice(2, 8);
4
let
globalIndex = 0;
5
export
function
getId(): string {
6
globalIndex += 1;
7
return
`mm-${uniqId}-${globalIndex}`;
8
}
9
10
export
function
noop(): void {
11
// noop
Callers
1
constructor
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected