This snippet will give you the contains function for Javascript.
Sample Javascript
String.prototype.contains = function(text) { return (this.indexOf(text) !== -1); };
All the Code Snippets and Samples you need
This snippet will give you the contains function for Javascript.
String.prototype.contains = function(text) { return (this.indexOf(text) !== -1); };
You must be logged in to post a comment.
RT @CodeSnippetsNET: contains function for #Javascript http://t.co/ZwVpWDMCwm #js #html #php #css #code#dev #programming
RT @CodeSnippetsNET: contains function for #Javascript http://t.co/ZwVpWDMCwm #js #html #php #css #code#dev #programming