Nodejs Utililty Methods String Ends With

List of utility methods to do String Ends With

Description

The list of methods to do String Ends With are organized into topic(s).

Method

endwith(appendix)
String.prototype.endwith = function(appendix){
  if (this.length >= appendix.length) {
    if (this.substr(-appendix.length) === appendix) {
      return true;
  return false;
};
var a = 'abc---lmn';
...