I currently have a pretty messy vue file, with 25 variables defined in a hard coded way. Is there a method to change the keys uncovered and isMine all at once? Instead of going by them one by one.
data() {
return {
a0: {
uncovered: false,
isMine: false
},
a1: {
uncovered: false,
isMine: false
},
a2: {
uncovered: false,
...
(The reason that the numbers are prefixed with a is because having the numbers defined without a prefix didn't work, I'll probably update it to underscores later on)