Created
January 23, 2020 16:09
-
-
Save Falci/31731b7d68c2740bb8fad894d44e55b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const g7r = (word='') => word.length < 3 ? word : word[0] + (word.length -2) + word[word.length-1]; | |
g7r('generator'); // g7r | |
g7r('internationalization'); // i18n | |
g7r('accessibility'); // a11y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment