Here you can find the source of StartsWith( str )
String.prototype.StartsWith = function( str ) { return this.indexOf( str ) == 0; };
String.prototype.starts = function( other ){ return !!other && other.substr( 0, this.length) == this function str_starts( that, other ){ return !!other && other.substr( 0, that.length) == that
String.prototype.startsWith = String.prototype.startsWith || function ( pattern ) { return this.lastIndexOf(pattern, 0) === 0;
String.prototype.startsWith = function( str ) { if ( str.length > this.length ) { return false; return( String( this ).substr( 0, str.length ) == str ); };
String.prototype.startsWith = function( value ) return ( this.substr( 0, value.length ) == value ) ;