contains(value) {
    for (let current = this.first, index = 0; current; index++, current = current.next) {
      if (current.value === value) {
        return index;
      }
    }
  }
Find first occurence of the element matching the value
return index or undefined
Runtime: O(n)
@param {any} value