MCPcopy
hub / github.com/strongloop/loopback / joinUrlPath

Function joinUrlPath

common/models/user.js:1439–1447  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

1437}
1438
1439function joinUrlPath(args) {
1440 let result = arguments[0];
1441 for (let ix = 1; ix < arguments.length; ix++) {
1442 const next = arguments[ix];
1443 result += result[result.length - 1] === '/' && next[0] === '/' ?
1444 next.slice(1) : next;
1445 }
1446 return result;
1447}

Callers 1

user.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…