title: Hide all element with #id not in array given
body: <p>I have an array containing IDs of element like :</p>
  <pre><code>let array = ['id1','id2'];
  </code></pre>
  <p>How can I hide all element that it's <code>#id</code> is not in array that is given before.</p>
  <pre><code>&lt;div id=&quot;id1&quot; class=&quot;shown&quot;&gt;
  &lt;div id=&quot;id2&quot; class=&quot;shown&quot;&gt;
  &lt;div id=&quot;id3&quot; class=&quot;shown&quot;&gt;
  
  &lt;!-- Expected Result --&gt;
  &lt;div id=&quot;id1&quot; class=&quot;shown&quot;&gt;
  &lt;div id=&quot;id2&quot; class=&quot;shown&quot;&gt;
  &lt;div id=&quot;id3&quot; class=&quot;&quot;&gt;
  </code></pre>