Javascript String subdomain()

Description

Javascript String subdomain()


String.prototype.subdomain = function() {
  return this.substr(0, this.indexOf("." + config.domainHost));
};



PreviousNext

Related