Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ isExternalUrl
Function
isExternalUrl
packages/dev/s2-docs/src/OptimisticToc.tsx:115–117 ·
view source on GitHub ↗
(url: string)
Source
from the content-addressed store, hash-verified
113
}
114
115
function isExternalUrl(url: string): boolean {
116
return url.startsWith(
'http://'
) || url.startsWith(
'https://'
);
117
}
118
119
function RelatedPages({pages}: {pages: Array<{title: string; url: string}>}) {
120
return (
Callers
1
RelatedPages
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected