0

I found this post about implementing a hashmap in typescript, and I've got that working, except for removing something from the hashmap.

TypeScript hashmap/dictionary interface

I add something by doing Input.keys[event.key] = event.keyCode; to add a key to my abstract Input class's keys field that is a hashmap. How can I remove something from it?

anonymous-dev
  • 2,897
  • 9
  • 48
  • 112

1 Answers1

2

If your not doing this as just an exercise it might be useful to look into Map() I think it should provide the needed functionality

ErBu
  • 355
  • 2
  • 7