DEV Community

Discussion on: Hands-on Vue.js for Beginners (Part 4)

Collapse
 
marinamosti profile image
Marina Mosti

It works, but it's a little overkill :) You can pass the whole 'game' object to the function, that way you don't have to .find on the array. Also, be careful with ==, as a best practice try to use === that way you won't run into very hard to understand bugs with types! :D

Collapse
 
pwnchaurasia profile image
Pawan Chaurasia

noted. Thanks