Skip to content

Instantly share code, notes, and snippets.

@dragonza
Created February 12, 2018 17:53
Show Gist options
  • Save dragonza/e278c2f1797ddbdcb905590af6d15140 to your computer and use it in GitHub Desktop.
Save dragonza/e278c2f1797ddbdcb905590af6d15140 to your computer and use it in GitHub Desktop.
Find commonly used character
return Object.keys(obj).reduce((prev, next) => obj[a] >= obj[b] ? a : b);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment