Match String start - Node.js String

Node.js examples for String:String Start

Description

Match String start

Demo Code


String.prototype.startsWith = function(str) {
    return (this.match("^"+str)==str) 
}

Related Tutorials