I have a problem with my script Javascript. I try to create a multidimensional array with dates in the key.
I would like to have something like
"1" : [ "2018-01-01", "2018-02-02" ]
"11" : [ "2018-01-01", "2018-02-02" ]
But I get something like
1 : [ "2018-01-01", "2018-02-02" ]
2 : ""
3 : ""
..
11 : [ "2018-01-01", "2018-02-02" ]
I'm doing
var array = [];
array[no].push(date);
Thanks for the future help,
MYT.