Node.js examples for String:String End
Check string ends with charAt function
String.prototype.endsWith = function endsWith(c){ if(this.charAt(this.length - 1) == c){ return true;//w w w .j av a 2 s. co m } else { return false; } };