typescript index signature add 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