Node.js examples for String:String Start
Using slice method to check string start
if (typeof String.prototype.startsWith != 'function') { String.prototype.startsWith = function(str) { return this.slice(0, str.length) == str; };//from ww w.j a v a 2s.c o m }