Use a ES6 map, like an object.
This module is one of those rare hidden gems in npm, it's already a year old, it makes uses of ES6 reflect API with proxy to make give us a convience method so that maps can be used like an Object.
What other advantages apart from syntax sugar?
Iterate it like a regular object with
(for in)without worrying about
(for of)you will get arrays of length 2 of both keys and values.
npm install --save objectmap
1 2 3 4 5 6 7 8 9
Thanks to Calvin for this useful util :)