new Queue()
Members
length
myQueue :Array.<T>
Type:
- Array.<T>
Methods
clear()
copy()
deleteAtPos()
Deletes the item at the given position then resets the items after
dequeue()
enqueue()
find()
forEach()
isEmpty() → {boolean}
Returns:
- Type
- boolean
join()
Joins the provided queue to the end of the queue in this instance
peek()
position()
sortDelete()
Using algo below to avoid touching this.myQueue directly and have heads and tails update correctly
Less buggy
tail()
Get the value at the tail of the queue