Node.js examples for String:String Start
Add string starts With method using slice
String.prototype.startsWith = function (str){ return this.slice(0, str.length) == str; };/*from w ww. j av a 2 s. c o m*/