src/validate.js
function validateUrl (url) {
  if (!url) {
    return option.some('Url is not specified')
  }
  if (typeof url !== 'string') {
    return option.some('Url should be type of string')
  }
  return option.none
}
function validateUrl (url) {
  if (!url) {
    return option.some('Url is not specified')
  }
  if (typeof url !== 'string') {
    return option.some('Url should be type of string')
  }
  return option.none
}
function validateUrl ( url ) { if ( ! url ) { return option . some ( 'Url is not specified' ) } if ( typeof url !== 'string' ) { return option . some ( 'Url should be type of string' ) } return option . none }
Basicly validate url
@param {String} url – URL
@return {String} error
Basicly validate url