title: How to add a string[] array into a record<string,boolean> format using typescript?
body: <p>I have a string array and I want to keep those value and create a new array Record</p>
  
  <p>for each value in userValue.</p>
  
  <p><strong>Example</strong></p>
  
  <pre><code> userValue: string[] = ["1111","2222","3333","4444"];
  
  
    selectedOptions: Record&lt;string, boolean&gt; = {
      //how to add userValue array into here?
      1111: true, //hardcoded
      2222: true, //hardcoded
      3333: true, //hardcoded
      4444: true //hardcoded
    };
  </code></pre>