Check is Absolute URL

Published on

NaN

Returns true if the url is an absolute URL

function isAbsolute(url) {
  return /^https?:\/\//.test(url);
}