Skip to content

Instantly share code, notes, and snippets.

@dragonza
Created February 12, 2018 17:51
Show Gist options
  • Select an option

  • Save dragonza/4c378f8b73cecf83f3a2fe5aa6206ebf to your computer and use it in GitHub Desktop.

Select an option

Save dragonza/4c378f8b73cecf83f3a2fe5aa6206ebf to your computer and use it in GitHub Desktop.
Object.keys(obj).forEach(char => {
if (obj[char] > max) {
maxChar = char;
max = obj[char];
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment