It puzzles me that one of the primary purposes of Typescript over Java Script is the use of types. Yet, most blogs explaining typescript continue to not use Types, all their examples, as yours are, just use Type any.
I believe your article would be must better if you defined your Map using Types
const map = new Map() and avoided the implicitly use of ‘any’ or ‘object’ in your examples
]]>