Double-ended Queue
简单的双向队列实现
Install
$ yarn simple-deque
How to Use
const Deque = const deque = 314 'hello, deque.' falseconst it = dequelet next = itnextwhile !nextdone next = itnext console
API
unshift(obj)
- insert from the headshift()
- delete from the headpush(obj)
- insert from the tailpop()
- delete from the tailvalues()
- return all data values in arraynodes()
- return all nodes in array