I have an array that contains many objects like this :
[{x: updateX}, {y: updateY} ]
By using this array, I want to generate Vue js watchers automatically like this:
watch: {
x(){
this.updateX()
},
y(){
this.updateY()
}
}
I only know that vue keep watchers as array.