peekFirst method

E? peekFirst()

Returns the first element without removing it.

Implementation

E? peekFirst() {
  return peek();
}