PreviousNext

Creating Type-Safe Structures (and Dictionaries) with Tuples

by bill-s, 2016-02-20T10:10:53.000Z

In last month's column I showed how to declare and use TypeScript arrays. As I mentioned in that column, in many ways it's better to think of TypeScript arrays as dictionaries: Collections whose values can be accessed by providing a key value. It's just that, with arrays, the keys are always numeric values.

Read More