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] ];
Output = [ 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 ] ]
COuld you please guide , how to achieve it.