I have an array of arrays, where each inner array contains three items: A postcode, a street name and an array of dates [for garbage collection].
The user will provide their postcode and house number, and the appropriate information needs to be displayed to them. There's also a need to be able to add dates to each 'collection array' after carrying out checks.
This is the code I have, but the data seems badly structured. How could it be improved?
var postcodes = [
["BT161JR18", "Londonderry Park", [collectionArrayBT161JR18]],
["BT161JR19", "Ballyregan Cresent", [collectionArrayBT161JR19]],
["BT161JR11", "Ballyregan Road", [collectionArrayBT161JR11]],
] ;
var collectionArrayBT161JR18 = ["16/05/14", "18/06/14", "19/07/14"];
var collectionArrayBT161JR19 = ["17/05/14", "11/06/14"];
var collectionArrayBT161JR11 = ["14/05/14", "20/06/14"];