title: JavaScript Array vs object/map when searching by value
body: <p>I have some data for example student names. I added them to an object where key is the name and data is null. </p>
  
  <p>I read on one of my own threads in stack overflow that objects perform better than arrays when searching by value. Because browsers use map algorithm/concept for objects. So I am using objects/maps extensively even if the data is not in key value pair format.</p>
  
  <p>Is the usage of objects encouraged instead of an array even though the data is not in key value pair format?</p>
  
  <p>Thank you.</p>