var arr = []; //is a multidimensional array.
var barr = []; //is a temp array that is dynamically updated
var key = "key1"
arr.push(key, barr);
arr now looks like this -> [key, Array(1)]
New data comes into barr how to i push another item into the nested array for the same key?
expected output should be something like this: [key, Array(2)]
[key, Array(1) ]->[key, Array(2)][ "key1", Array[0] ]not[ "key1", Array[1] ]. Do you just want to add something into that array?