title: How to merge two 2 dimensional arrays with Jquery
body: <p>I want to merge the oldData and newData. Need to show output by sorting date as ascending. If data is available in both, add as [date , oldValue , New value]. If data available in newData only then create like [ '2018-03-30', null, 5 ]</p>
  
  <pre><code>var oldData = [ [ '2018-04-01', 10 ], [ '2018-04-02', 20 ], [ '2018-04-03', 30 ] ];
  var newData = [ [ '2018-03-30',  5 ], [ '2018-03-31',  6 ], [ '2018-04-01', 22 ] ];
  </code></pre>
  
  <p>The desired output would be:</p>
  
  <pre><code>[ [ '2018-03-30', null, 5 ], [ '2018-03-31', null,  6 ], [ '2018-04-01', 10, 22 ] , [ '2018-04-02', 20, null ] , [ '2018-04-03', 30, null ] ];
  </code></pre>
  
  <p>Please help me achieve this in jquery / java-script.</p>