With the snippet below you can use the IndexOf method for Javascript.
Sample JS
Array.prototype.IndexOf = Array.prototype.IndexOf || function (element) { for (var i=0; i < this.length; i++) { if(this[i] === element) return i; } return -1; };
All the Code Snippets and Samples you need
With the snippet below you can use the IndexOf method for Javascript.
Array.prototype.IndexOf = Array.prototype.IndexOf || function (element) { for (var i=0; i < this.length; i++) { if(this[i] === element) return i; } return -1; };
You must be logged in to post a comment.
RT @CodeSnippetsNET: IndexOf method for #Javascript http://t.co/Wp6qqSEijo #js #php #html #css #dev #programming #code
RT @CodeSnippetsNET: IndexOf method for #Javascript http://t.co/Wp6qqSEijo #js #php #html #css #dev #programming #code