dequeueAll() {
    const result = this.getValues();
    this.clear();
    return result;
  }
/**
   * Removes and returns all items in the buffer in insertion order.
   * @return {!Array<T>}
   */
Removes and returns all items in the buffer in insertion order.
@return {!Array}
Removes and returns all items in the buffer in insertion order . @return { !Array }
dequeueAll() {
    const result = this.getValues();
    this.clear();
    return result;
  }
dequeueAll ( ) { const result = this . getValues ( ) ; this . clear ( ) ; return result ; }
Removes and returns all items in the buffer in insertion order.
Removes and returns all items in the buffer in insertion order .