Node.js examples for String:String End
Check string ends with substr
String.prototype.endsWith = function(suffix) { return (this.substr(this.length - suffix.length) === suffix); }