Value Objects as Map Keys in TypeScript

1 · Tom Cant · April 16, 2022, midnight
In a previous post I wrote about how JavaScript’s lack of support for value objects caused a problem when using the built-in Set class, and how it could be solved by using the idea of a Compound Set instead. In this post I’m going to describe a similar solution I’ve been using for the built-in Map class....