ArrayList.js
function (element) {
    for (var i = 0, len = this.length; i < len; i++) {
      if (element === this[i]) {
        return true;
      }
    }
    return false;
  }
function (element) {
    for (var i = 0, len = this.length; i < len; i++) {
      if (element === this[i]) {
        return true;
      }
    }
    return false;
  }
Check if an element is in the list

@param element
@returns {boolean}