function checkGiftBuyer(buyer){
    var updateGiftToDB = true;

    //console.log("Checking for buyer error...");

    if(buyer == "" || buyer == null || buyer == undefined || userUserNames.includes(buyer)){
      updateGiftToDB = false;
      //console.log("No buyer error");
    } else {
      console.log("Buyer error found!");
    }

    return updateGiftToDB;
  }
//This function assists the error checking by checking to see if the buyer's user name exists.
This function assists the error checking by checking to see if the buyer's user name exists.
This function assists the error checking by checking to see if the buyer ' s user name exists .
function checkGiftBuyer(buyer){
    var updateGiftToDB = true;
    if(buyer == "" || buyer == null || buyer == undefined || userUserNames.includes(buyer)){
      updateGiftToDB = false;
    } else {
      console.log("Buyer error found!");
    }
    return updateGiftToDB;
  }
function checkGiftBuyer ( buyer ) { var updateGiftToDB = true ; if ( buyer == "" || buyer == null || buyer == undefined || userUserNames . includes ( buyer ) ) { updateGiftToDB = false ; } else { console . log ( "Buyer error found!" ) ; } return updateGiftToDB ; }
This function assists the error checking by checking to see if the buyer's user name exists.
This function assists the error checking by checking to see if the buyer ' s user name exists .
//console.log("Checking for buyer error..."); //console.log("No buyer error");