TypeScript – Enumerating object properties with Object.keys

One of the benefits of JavaScript (and therefore TypeScript) is being able to do whatever you want with objects. This can be dangerous, of course, because of type promiscuity – which is one thing that TypeScript addresses. via GIPHY Object.keys Sometimes it is still useful to just loop through each property on an object in … [Read more…]