JavaScript check if an URL is http or https using check-more-types library In this JavaScript tutorial we learn how to validate if a given string is an http or https using the http() and https() method of the check-more-types library.