TypeScript-Handbook
TypeScript-Handbook copied to clipboard
Provide more understandable example for string indexers
There was a misunderstanding about string indexers on Stack Overflow.
The docs should compare obj.property with obj[someValue] instead of obj["property"] to better illustrate why property types should match the indexer return type.
Please, take a look at the question linked above and the answer for more information.