A common operation is “does this list already have this item in it?”.
The obvious solution is to use arrays for the list of items and indexOf() as the detection method:
var flintstones = ['fred', 'wilma', 'pebbles'];
assert(flintstones.indexOf('wilma') !==...