I'm super new to javascript and learning.
I have this piece of code and it is running and getting the job done.
(this.name == ('nodepy') || this.name == ("nonlinear-waves-course") || this.name == ("SSP_Tools"))
but now I want to define an array or list of strings
var listOfRepos = ["nodepy", "nonlinear-waves-course", "SSP_Tools"];
How do I go about checking if "this.name" is in "listOfRepos"?
In python, I can just write something like this:
this.name in listOfRepos
Again, I'm new to javascript. Very little experience. Thank you so much in advance.