List of utility methods to do String Ends With
String.prototype.endwith = function(appendix){ if (this.length >= appendix.length) { if (this.substr(-appendix.length) === appendix) { return true; return false; }; var a = 'abc---lmn'; ...