I am building an ionic 4 app which has to save multiple labels and arrays to an associative array but having trouble with initializing and pushing new items to the array and editing/updating existing array items in the associative array.
array1 = {
'Question1'=>['True','True'],
'Question2'=>['False, False']
}
How can I do this in typescript?
obj: { [key: string]: string[] } = { key1: ["1a", "1b"] }or see stackoverflow.com/questions/30019542/es6-map-in-typescript