MCPcopy Create free account
hub / github.com/adobe/react-spectrum / isExternalUrl

Function isExternalUrl

packages/dev/s2-docs/src/Layout.tsx:440–442  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

438}
439
440function isExternalUrl(url: string): boolean {
441 return url.startsWith('http://') || url.startsWith('https://');
442}
443
444function MobileRelatedPages({pages}: {pages: Array<{title: string; url: string}>}) {
445 return (

Callers 1

MobileRelatedPagesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected