code: function indexOf(list, element, comparator) {
  			for (var i=0,item; item=list[i]; i++) {
  				if (equals(item, element, comparator)) {
  					return i;
  				}
  			}
  			return -1;
  		}
docs: returns index of given element in given list, using given comparator