code: function contains(arr, element) {
          for (var i = 0, len = arr.length; i < len; i++) {
              if (arr[i] === element) {
                  return true;
              }
          }
          return false;
      }
docs: TODO: introduce polyfill for Array.indexOf