Dictionary Objects in JavaScript and TypeScript
TL;DR: when using an object as a dictionary in TypeScript/ES6, iterate through it using `Object.keys()`. Coming from statically typed languages, I keep looking for a Map or Dict type in TypeScript (or JavaScript). People use objects for this, though. Objects have key-value pairs in them, and you can add them and delete them and declare …