typescript string index array code example
Example: index signature in typescript
let foo: any = {};
foo['Hello'] = 'World';
console.log(foo['Hello']); // World
let foo: any = {};
foo['Hello'] = 'World';
console.log(foo['Hello']); // World