B2G/gecko/services/aitc/modules/storage.js
/**
   * Return the object at the front of the queue without removing it.
   */
Return the object at the front of the queue without removing it.
Return the object at the front of the queue without removing it .
function peek() {
    this._log.info("Peek called when length " + this._queue.length);
    if (!this._queue.length) {
      throw new Error("Queue is empty");
    }
    return this._queue[0];
  }
function peek ( ) { this . _log . info ( "Peek called when length " + this . _queue . length ) ; if ( ! this . _queue . length ) { throw new Error ( "Queue is empty" ) ; } return this . _queue [ 0 ] ; }
Return the object at the front of the queue without removing it.
Return the object at the front of the queue without removing it .