text: // add whatever parameters you deem necessary
  function averagePair(array,target) {
      let seen = {};
      const unaveraged = target*2;
      for(num of array){
          if(seen[unaveraged-num]){
              return true;
          }
          else{
              seen[num]=1;
          }
      }
      return false;
  }
  