title: how to use in_array in ejs template
body: <p>How to use in_array or similar in inside an ejs template?</p>
  
  <p>This is how I use it on php:</p>
  
  <pre><code>&lt;?php
  $cur_repository_id = array();
  foreach($dbrepos as $row){
      $shared_ids = $row['shared_ids'];
      if(in_array($user_id, $shared_ids)){
          $selected = "selected";
          $cur_repository_id[] = $row['rep_id'];
      }else{
          $selected = "";
      }
  ?&gt;
  &lt;option value="&lt;?php echo $row['rep_id'];?&gt;" &lt;?php echo $selected;?&gt;&gt;&lt;?php echo $row['namespace'];?&gt;&lt;/option&gt;
  &lt;?php
  }
  ?&gt;
  </code></pre>