Skip to content

Instantly share code, notes, and snippets.

View uberbrady's full-sized avatar

Brady Wetherington uberbrady

View GitHub Profile
@uberbrady
uberbrady / gist:1344608
Created November 7, 2011 10:15 — forked from buzzedword/gist:1317242
Add indexOf to all IE versions under IE9
<!--[if lt IE 9]> -->
<script>
/* if (!Array.prototype.indexOf) { */
Array.prototype.schmindexOf = function (searchElement /*, fromIndex */ ) {
"use strict";
if (this === void 0 || this === null) {
throw new TypeError();
}
var t = Object(this);
var len = t.length >>> 0;