function Node(data, prev, next) {
    this.next = next;
    if (next) {
        next.prev = this;
    }
    this.prev = prev;
    if (prev) {
        prev.next = this;
    }
    this.value = data;
}
function Node(data, prev, next) {
    this.next = next;
    if (next) {
        next.prev = this;
    }
    this.prev = prev;
    if (prev) {
        prev.next = this;
    }
    this.value = data;
}
function Node ( data , prev , next ) { this . next = next ; if ( next ) { next . prev = this ; } this . prev = prev ; if ( prev ) { prev . next = this ; } this . value = data ; }
/* eslint-disable func-names
/ * eslint - disable func - names