code: function contains(arr, x) {
          for (var i = 0; i < arr.length; i++) {
              if (arr[i] === x) return true;
          }
          return false;
      }
docs: Auxiliary function: no Array.indexOf owing to IE8