title: fastest way to detect if a value is in a group of values in Javascript
body: <p>I have a group of strings in Javascript and I need to write a function that detects if another specific string belongs to this group or not.</p>
  
  <p>What is the fastest way to achieve this? Is it alright to put the group of values into an array, and then write a function that searches through the array?</p>
  
  <p>I think if I keep the values sorted and do a binary search, it should work fast enough. Or is there some other smart way of doing this, which can work faster?</p>