src/lib/collections/linked-list.js
function (value) {
        var node = this.head;

        if (node !== null) {
            if (value !== null) {
                do {
                    if (runtimeEquals(node._value, value)) {
                        return node;
                    }
                    node = node._next;
                }
                while (node !== this.head);
            }
            else {
                do {
                    if (node._value === null) {
                        return node;
                    }

                    node = node._next;
                }
                while (node !== this.head);
            }
        }

        return null;
    }
function (value) {
        var node = this.head;

        if (node !== null) {
            if (value !== null) {
                do {
                    if (runtimeEquals(node._value, value)) {
                        return node;
                    }
                    node = node._next;
                }
                while (node !== this.head);
            }
            else {
                do {
                    if (node._value === null) {
                        return node;
                    }

                    node = node._next;
                }
                while (node !== this.head);
            }
        }

        return null;
    }
function ( value ) { var node = this . head ; if ( node !== null ) { if ( value !== null ) { do { if ( runtimeEquals ( node . _value , value ) ) { return node ; } node = node . _next ; } while ( node !== this . head ) ; } else { do { if ( node . _value === null ) { return node ; } node = node . _next ; } while ( node !== this . head ) ; } } return null ; }
Finds the first node that contains the specified value.
@param {Object} value The value to locate in the LinkedList.
@returns {LinkedListNode}
Finds the first node that contains the specified value .