title: Get index of object in array to look up corresponding object in other array
body: <p>I have two arrays. One is an array of names and the other is an array made up of strings titled "Yes" or "No". The index path of each name in the "name" array corresponds with the same index path in the "Yes/No" array. For example:</p>
  
  
  
  <pre class="lang-none prettyprint-override"><code>Names Array | Yes/No Array
  Person 1    | Yes
  Person 2    | No
  Person 3    | Yes
  </code></pre>
  
  <p>What would be the easiest way to look up a person's name (possibly getting the index path of it) and check whether they are "Yes" or "No" in the "Yes/No" array?</p>
  
  <p>Also, I'm not sure if "index path" is the right term to use. If it isn't, I mean the number that an object is in an array.</p>