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)); };
All the Code Snippets and Samples you need
This snippet will give you the EndsWith function for Javascript.
String.prototype.endsWith = function(text) { return (this.indexOf(text) === (this.length-text.length)); };
You must be logged in to post a comment.
RT @CodeSnippetsNET: EndsWith function for #Javascript http://t.co/Hx7iEm4tdJ #js #code #coding #programming
RT @CodeSnippetsNET: EndsWith function for #Javascript http://t.co/Hx7iEm4tdJ #js #code #coding #programming