Javascript String startsWithAny(strings)

Description

Javascript String startsWithAny(strings)


String.prototype.startsWithAny = function(strings){
    for (var i = 0; i < strings.length; i++)
        if (this.startsWith(strings[i]))
            return true;

    return false;
}



PreviousNext

Related