This snippet will give you the EndsWith function for Javascript.
Sample Javascript
String.prototype.endsWith = function(text) { return (this.indexOf(text) === (this.length-text.length)); };
This snippet will give you the EndsWith function for Javascript.
String.prototype.endsWith = function(text) { return (this.indexOf(text) === (this.length-text.length)); };