queue-package
v1.0.0
Published
This is an npm package that contains all my ESLint, Prettier and Webpack configurations that I use for each project. It also contains the normalize css I always use. This will save time as I will we able to reuse this code for each project
Downloads
2
Readme
Queue
A simple JavaScript implementation of a queue data structure using a factory function.
Methods
Methods
- enqueue(item): Adds an item to the back of the queue.
- dequeue(): Removes and returns the front item of the queue.
- front(): Returns the front item of the queue without removing it.
- isEmpty(): Checks if the queue is empty and returns a boolean.
- size(): Returns the current size of the queue.
- print(): Prints the items of the queue in the order they appear.