ES6 Map in Typescript

EDIT (Jun 5 2019): While the idea that “TypeScript supports Map natively” is still true, since version 2.1 TypeScript supports something called Record. Unfortunately the first generic parameter (key type) is still not fully respected: even with a string type, something like peopleA[0] (a number) is still valid. EDIT (Apr 25 2016): The answer below is old and should not be considered the best answer. … Read more