Published
Edited
Dec 30, 2018
Insert cell
Insert cell
Insert cell
function isUrlAbsolute (url) {
return (url.indexOf('://') > 0 || url.indexOf('//') === 0);
}
Insert cell
isUrlRelative = url => !isUrlAbsolute(url)
Insert cell
absoluteUrls = [
'https://medium.com/@hugo__df',
'https://codewithhugo.com',
'http://dev.to/hugo__df',
]
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
absoluteUrls.map(isMediumUrl)
Insert cell
Insert cell
absoluteUrls.map(isDevToUrl)
Insert cell
Insert cell
absoluteUrls.map(isMediumOrDevToUrl)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more