Skip to content

Instantly share code, notes, and snippets.

@justsml
Created September 3, 2013 04:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justsml/6419674 to your computer and use it in GitHub Desktop.
Save justsml/6419674 to your computer and use it in GitHub Desktop.
Array indexOf IE Enable Snippet
Array.prototype.indexOf = function(obj, start) {
for (var i = (start || 0), j = this.length; i < j; i++) {
if (this[i] === obj) { return i; }
}
return -1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment