build/sorted-list/index.js
function findNode(firstNode, predicate) {
    let curNode = firstNode;
    while (curNode != null) {
        if (predicate(curNode.value))
            return curNode;
        curNode = curNode.next;
    }
}
function findNode(firstNode, predicate) {
    let curNode = firstNode;
    while (curNode != null) {
        if (predicate(curNode.value))
            return curNode;
        curNode = curNode.next;
    }
}
function findNode ( firstNode , predicate ) { let curNode = firstNode ; while ( curNode != null ) { if ( predicate ( curNode . value ) ) return curNode ; curNode = curNode . next ; } }
Seeks the list from the beginning and returns the first item matching the given predicate
Seeks the list from the beginning and returns the first item matching the given predicate