0
const newdata = {biddate: new Date(), productId: id, bidamount: bid, username: user.displayName, email: user.email};
};

i want to delete key from this object.

1 Answers1

0
    delete newdata.email;

You can try this

Hardik Trada
  • 158
  • 1
  • 4