DEV Community

Discussion on: TIPS & TRICKS OF JAVASCRIPT & REACT

Collapse
miketalbot profile image
Mike Talbot • Edited

Nice list :)

I'd just say on Tip 7: [1,5,7].includes(x) is neater as there's no magic -1 (and it's shorter)

Tip 8: can work, but functions with few parameters can benefit from not having to force names on the user.

Collapse
nipu profile image
Nipu Chakraborty Author

Thanks for your feedback

Some comments have been hidden by the post's author - find out more