twitst4tz

twitter statistics web application
Log | Files | Refs | README | LICENSE

index.js (199B)


      1 
      2 var indexOf = [].indexOf;
      3 
      4 module.exports = function(arr, obj){
      5   if (indexOf) return arr.indexOf(obj);
      6   for (var i = 0; i < arr.length; ++i) {
      7     if (arr[i] === obj) return i;
      8   }
      9   return -1;
     10 };