Javascript String startsWith(value)

Description

Javascript String startsWith(value)



// Extension method startsWith for string object
String.prototype.startsWith = function (value) {
    return this.indexOf(value) != -1;
};



PreviousNext

Related