Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (16 sloc) 615 Bytes

Winked - A suggestive CommonJS linked list implementation

I wrote this library not for anything useful, but just as a learning experience. Method names were inspired by the Java LinkedList implementation, the JavaScript Array prototype, jQuery's DOM manipulation methods, and Python.


$ cd /path/to/winked
$ node repl.js
winked> var list = new LinkedList();
winked> list.appendAll(new Node(1), new Node(2))
{ prev: null
, next: { prev: [Circular], next: null, data: 2 }
, data: 1
Something went wrong with that request. Please try again.