code: function findNode(firstNode, predicate) {
      let curNode = firstNode;
      while (curNode != null) {
          if (predicate(curNode.value))
              return curNode;
          curNode = curNode.next;
      }
  }
docs: Seeks the list from the beginning and returns the first item matching the given predicate