title: Check if a string exist in array
body: <p>I have the following key <code>StudentMembers[1].active</code> but I need to check  if this key exist in the following array</p>
  <pre><code>const array= [&quot;StudentMembers.Active&quot;,&quot;StudentMembers.InActive&quot;]
  </code></pre>
  <p>How to remove the index <code>[1]</code> from <code>StudentMembers[1].active</code> and check if <code>StudentMembers.Active</code> does exist in the array</p>