I am trying to ensure that my list does not contain an object that has just been instantiated. In it's current form the code lets any element into the list. Any suggestions would be greatly appreciated, thank you.
if(!this.$store.state.testCoins.includes(coinyBoi)){
this.$store.commit('pushCoin', coinyBoi);
} else {
console.log("DUPLICATE DETECTED!");
};