You can extend JS array to allow for a nice check whether it contains an item like myarray.has("check_item"); via
Array.prototype.has = function(obj) { // Extend array to check if it has a value
var i = this.length;
while (i--) {if (this[i] === obj) {return true;}}
return false;
}
I wanted to use a map for this exact reason, but then user configs don't support them, you at most can have a vector
Though another issue with maps is that they don't support case-insensitive matches, which is useful to ignore case from user input
(guess, might just as well convert user vector to a lowercase map)