MCPcopy Index your code
hub / github.com/buildbot/buildbot / restPath

Function restPath

www/data-module/src/data/DataUtils.ts:41–45  ·  view source on GitHub ↗
(arg: string | string[])

Source from the content-addressed store, hash-verified

39}
40
41export function restPath(arg: string | string[]) {
42 let a = copyOrSplit(arg);
43 a = a.filter(e => e !== '*');
44 return a.join('/');
45}
46
47export function endpointPath(arg: string | string[]) {
48 // if the argument count is even, the last argument is an id

Callers 1

DataUtils.test.tsFile · 0.90

Calls 3

copyOrSplitFunction · 0.85
filterMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected