Javascript String startsWith(needle)

Description

Javascript String startsWith(needle)


String.prototype.startsWith = function(needle)
{
    return(this.indexOf(needle) == 0);
};



PreviousNext

Related