https://github.com/devinus/winked
A suggestive CommonJS linked list implementation
https://github.com/devinus/winked
Last synced: 9 months ago
JSON representation
A suggestive CommonJS linked list implementation
- Host: GitHub
- URL: https://github.com/devinus/winked
- Owner: devinus
- License: isc
- Created: 2010-05-21T19:32:34.000Z (about 16 years ago)
- Default Branch: master
- Last Pushed: 2010-10-27T23:19:17.000Z (over 15 years ago)
- Last Synced: 2025-09-01T10:29:13.360Z (9 months ago)
- Language: JavaScript
- Homepage: http://github.com/devinus/winked
- Size: 97.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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.
## Usage
$ cd /path/to/winked
$ node repl.js
winked> var list = new LinkedList();
winked> list.appendAll(new Node(1), new Node(2))
winked> list.head.next.prev
{ prev: null
, next: { prev: [Circular], next: null, data: 2 }
, data: 1
}