Javascript String hasHttpPrefix()

Description

Javascript String hasHttpPrefix()


String.prototype.hasHttpPrefix = function() {
    return !!this.match(/^https*:\/\//i);
}



PreviousNext

Related