fac19 / week5-EIJO

Recipes database app
https://cookvid-19.herokuapp.com/
0 stars 2 forks source link

A tip for saving lines #34

Open Ivo-Evans opened 4 years ago

Ivo-Evans commented 4 years ago

Instead of if (a == b || a == c || a == d) you can do if ([b, c, d].includes(a))

HettieM commented 4 years ago

Hi Ivo, I just tested this and I'm not sure that it's right. It's checking that a includes b, c or d, not the other way round.