Answers for "typescript key value array"

1

key value pairs typescript

var item: {[key: string]: number}
Posted by: Guest on August-23-2020
0

typescript key value array

let indexedArray: {[key: string]: number}

let indexedArray: {[key: string]: number} = {
    foo: 123,
    bar: 456
}

indexedArray['foo'] = 12;
indexedArray.foo= 45;
Posted by: Guest on October-15-2020

Code answers related to "typescript key value array"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language