In pset 8, to check if a passenger is allowed to take the shuttle I must check if the passenger's house (https://shuttle.cs50.net/js/passengers.js) is in the HOUSES
array (https://shuttle.cs50.net/js/houses.js).
I cannot figure out how to do that since within houses.js
, house
is a key and within passengers.js
it is a value.
I know how to access the value of a key. How do I check the names of the keys in an array against a string value?