Javascript String beginsWith(str)

Description

Javascript String beginsWith(str)

String.prototype.beginsWith = function(str) {
 return (this.substr(0, str.length) == str);
}



PreviousNext

Related