let people = new Map();
I want some method to return a key by its value.
let jhonKey = people.getKey('jhon'); // jhonKey should be '1'
This content was originally published by Engineer Passion at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.