title: how to combine two arrays into one object with key value pair?
body: <p>I have 2 arrays, array a contains keys and array b contains their values</p>
  
  <pre><code>let a = ['name', 'options', 'address', 'options', 'gender', 'options'];
  let b = ['john doe', 'a', 'india', 'b', 'male', 'c'];
  </code></pre>
  
  <p>I want output like this</p>
  
  <pre><code> { 
    'name': 'john doe',
    'options': 'a, b, c',
    'address': 'india',
    'gender': 'male'
   }
  </code></pre>