Javascript String beginsWith(p_string)

Description

Javascript String beginsWith(p_string)


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



PreviousNext

Related