MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / formatTrail

Function formatTrail

scripts/lint-error-codes.cjs:113–115  ·  view source on GitHub ↗
(trail)

Source from the content-addressed store, hash-verified

111}
112
113function formatTrail(trail) {
114 return trail.map(seg => (typeof seg === 'number' ? `[${seg}]` : `.${seg}`)).join('').replace(/^\./, '');
115}
116
117function main() {
118 const enumData = loadEnum();

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected