DEV Community

Discussion on: You decide the new features!

Collapse
 
jzombie profile image
jzombie • Edited

You can also extend the "native" Map type (i.e. class StructMap extends Map) with a custom class for your needs.

If doing that, I'd highly recommend TypeScript because it will help you avoid returning the wrong types in your methods.