Check if a JavaScript string is a URL

preview_player
Показать описание
#short
#javascript
#string
#url
Is there a way in JavaScript to check if a string is a URL?
RegExes are excluded because the URL is most likely written like stackoverflow; that is to say that it might not have a .com, www or http.
Рекомендации по теме
welcome to shbcf.ru