title: Array with different data types in javascript
body: <p>I have two arrays one is string and other in integer in JavaScript and  I want an object in this form</p>
  <pre><code>[[&quot;a&quot;,1],[&quot;b&quot;,2],[&quot;c&quot;,3]]
  </code></pre>
  <p>Please help how I create this object</p>
  <p>Edit: Practical example of where this is needed...https://www.cssscript.com/creating-funnel-charts-using-svg-and-d3-js-d3-funnel/</p>