param url returns export function relativeToAbsolute ( url ) { const a = document . createElement ( 'a' ) ; a . setAttribute ( 'href' , url ) ; return a . href ; } param url returns export function isWebUrl ( url ) { const absoluteUrl = relativeToAbsolute ( url ) ; return /^https?:\/\// . test ( absoluteUrl ) ; }