Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/callstack/agent-device
/ withTrailingSlash
Function
withTrailingSlash
src/cloud-webdriver/webdriver-utils.ts:32–37 ·
view source on GitHub ↗
(url: URL)
Source
from the content-addressed store, hash-verified
30
}
31
32
export
function
withTrailingSlash(url: URL): URL {
33
if
(url.pathname.endsWith(
'/'
))
return
url;
34
const
copy =
new
URL(url);
35
copy.pathname = `${copy.pathname}/`;
36
return
copy;
37
}
Callers
1
constructor
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected