Skip to content

Commit 3dcc88e

Browse files
committed
chapter 05: [LinkedLists]
1 parent 1d40fd4 commit 3dcc88e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/js/data-structures/linked-list.js

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export default class LinkedList {
55
constructor(equalsFn = defaultEquals) {
66
this.equalsFn = equalsFn;
77
this.count = 0;
8+
this.head = undefined;
89
}
910
push(element) {
1011
const node = new Node(element);

0 commit comments

Comments
 (0)