add-doublylinkedlist

This commit is contained in:
hmizz
2020-04-27 00:20:00 +01:00
parent 992553944b
commit db6d24556a

View File

@@ -12,9 +12,7 @@ function doubleLinkedList() {
//Add new element
this.append = function(element) {
let node = new Node(element),
current = head,
previous;
let node = new Node(element);
if(!head){
head = node;