Queue<T>
Represents the structure of the Player’s Queue.
extends
Array<T>
Methods
.size
Size of Queue
Returns
number
.first
returns first track of the Queue Or null (if Queue is empty)
Returns
Track | T | null
.add(track)
adds the provided to Queue
Returns
Queue
.remove(index)
removes the track on provided index & returns the Removed Track
Returns
Track
.clear()
clears(removes all the tracks) the queue
Returns
void
.shuffle()
shuffles the Queue
Returns
void