MCPcopy Create free account
hub / github.com/GitbookIO/gitbook / isRelative

Function isRelative

lib/utils/location.js:23–25  ·  view source on GitHub ↗
(href)

Source from the content-addressed store, hash-verified

21
22// Inverse of isExternal
23function isRelative(href) {
24 return !isExternal(href);
25}
26
27// Return true if the link is an achor
28function isAnchor(href) {

Callers

nothing calls this directly

Calls 1

isExternalFunction · 0.85

Tested by

no test coverage detected