Repository
Current version released
3 years ago
Dependencies
deno.land/x
Versions
Nequeue
A queue-like wrapper around the JavaScript array.
Properties And methods
size(size of the queue)
Supports the following default Array methods:
at()(now warps on either side of the queue, also removes the item from the array)every()some()find()(also removes the item from the queue)filter()map()sort()pop()(actually implementsshift()rn. Useat(-1)for the originalpop())
Newer methods:
add()(akin toArray#push)array()(read-only access to the private#datafield)kick()(get the first element and move it to the last)shuffle()(sorts the queue in a random order)
License
MIT as always.