in src/contexts/Stream/CircularLinkedList.js [126:141]
get(data) {
if (!this.size) {
console.warn('Get: Linked List is empty!');
return;
}
let currentNode = this.head;
do {
if (this.compare(new Node(data), currentNode)) {
return currentNode;
}
currentNode = currentNode.next;
} while (!this.compare(currentNode, this.head));
console.warn('Get: No matching Node exists in the Linked List!');
}