src/App.js
/**
   * helper function that determines whether a request should be added to the history array or not
   * @param   {object} currOutput object for the request being done
   * @return  {void}
   */
helper function that determines whether a request should be added to the history array or not
@param   {object} currOutput object for the request being done
@return  {void}
helper function that determines whether a request should be added to the history array or not @param { object } currOutput object for the request being done @return { void }
updateHistory(currOutput) {
    for (const prevReq of this.state.history) {
      if (
        prevReq.url === currOutput.url &&
        prevReq.reqType === currOutput.reqType &&
        prevReq.reqBody === currOutput.reqBody
      ) {
        return;
      }
    }
    this.state.history.push(currOutput);
  }
updateHistory ( currOutput ) { for ( const prevReq of this . state . history ) { if ( prevReq . url === currOutput . url && prevReq . reqType === currOutput . reqType && prevReq . reqBody === currOutput . reqBody ) { return ; } } this . state . history . push ( currOutput ) ; }
helper function that determines whether a request should be added to the history array or not
 @param   {object} currOutput object for the request being done
 @return  {void}
helper function that determines whether a request should be added to the history array or not @param { object } currOutput object for the request being done @return { void }
/*eslint-disable no-unused-vars*/ /*eslint-enable no-unused-vars*/