code: function contains(arr, value, caseInsensitive) {
  		var i;
  		if (arr.indexOf && !caseInsensitive) {
  			return arr.indexOf(value) >= 0;
  		}
  		
  		for (i = 0; i < arr.length; i++) {
  			if (arr[i] === value) {
  				return true;
  			}
  
  			if (caseInsensitive && typeof(arr[i]) === "string" && typeof(value) === "string" && arr[i].toUpperCase() === value.toUpperCase()) {
  				return true;
  			}
  		}
  
  		return false;
  	}
docs: array.contains()