UNPKG

@vuesax-alpha/nightly

Version:
19 lines (15 loc) 828 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const isNavbarGroup = (nav) => Object.prototype.hasOwnProperty.call(nav, "children"); const isNavbarItem = (nav) => !Object.prototype.hasOwnProperty.call(nav, "children"); const isLinkExternal = (path) => !!(path == null ? void 0 : path.startsWith("http")); const isMailto = (path) => !!(path == null ? void 0 : path.startsWith("mailto:")); const isTel = (path) => !!(path == null ? void 0 : path.startsWith("tel:")); const isExternal = (path) => isLinkExternal(path) || isMailto(path) || isTel(path) || false; exports.isExternal = isExternal; exports.isLinkExternal = isLinkExternal; exports.isMailto = isMailto; exports.isNavbarGroup = isNavbarGroup; exports.isNavbarItem = isNavbarItem; exports.isTel = isTel; //# sourceMappingURL=navbar.js.map