MCPcopy 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
115function isExternalUrl(url: string): boolean {
116 return url.startsWith('http://') || url.startsWith('https://');
117}
118
119function RelatedPages({pages}: {pages: Array<{title: string; url: string}>}) {
120 return (

Callers 1

RelatedPagesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected