How can I quickly retrieve a value from a MapIterator returned from Object.keys function?

Assuming you are using native Map‘s and it’s ok to use ES6, you can use the spread operator to expand Map.keys()

const keys = [...RULE_TABLE.keys()]

Leave a Comment