Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

object of object type in typescript

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

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

indexedArray['foo'] = 12;
indexedArray.foo= 45;
 
PREVIOUS NEXT
Tagged: #object #object #type #typescript
ADD COMMENT
Topic
Name
6+7 =