function indexOf(array, value) {
      for (var i = 0, len = array.length; i < len; i++) {
        if (array[i] === value) {
          return i;
        }
      }
      return -1;
    }
// Older IE versions do not directly support indexOf so we must implement our own, sadly.
Older IE versions do not directly support indexOf so we must implement our own, sadly.
Older IE versions do not directly support indexOf so we must implement our own sadly .
function indexOf(array, value) {
      for (var i = 0, len = array.length; i < len; i++) {
        if (array[i] === value) {
          return i;
        }
      }
      return -1;
    }
function indexOf ( array , value ) { for ( var i = 0 , len = array . length ; i < len ; i ++ ) { if ( array [ i ] === value ) { return i ; } } return - 1 ; }
Older IE versions do not directly support indexOf so we must implement our own, sadly.
Older IE versions do not directly support indexOf so we must implement our own sadly .