peek method
dynamic
peek()
Returns the item with the highest priority without removal.
Implementation
peek() {
return data[ 0 ];
}
Returns the item with the highest priority without removal.
peek() {
return data[ 0 ];
}