title: transform javascript array combining child
body: <p>i go this json array</p>
  
  <pre><code>var responseArr = {options :{ch:["Hi", "By",], en:["Peter", "John"]}}
  </code></pre>
  
  <p>is it possible change into this form</p>
  
  <pre><code>var responseArrB = {"options": [{'ch':'Hi',en:'Peter'},{ch:'By',en:'John'}]}
  </code></pre>
  
  <p>i tried</p>
  
  <pre><code>let responseArrB = responseArr.options.ch.map( item =&gt; Object.assign({ch:item.ch, en:item.en}))
  console.log(vv)
  </code></pre>
  
  <p>but responseArrB..show</p>
  
  <pre><code>{ch: undefined, en: undefined}
  </code></pre>
  
  <p>i could either show ch or en but can't combine it</p>
  
  <pre><code>let arrThree = responseArr.options.ch.map( item =&gt; Object.assign({ch:item, en:item}))
  </code></pre>