Skip to content

Instantly share code, notes, and snippets.

@markupboy
Created September 15, 2016 14:59
Show Gist options
  • Save markupboy/6b376968b16a91c27a542453738a679b to your computer and use it in GitHub Desktop.
Save markupboy/6b376968b16a91c27a542453738a679b to your computer and use it in GitHub Desktop.
var aNNit = function(str) {
return str.slice(0,1) + (str.length - 2) + str.slice(-1)
}
aNNit('internationalization')
// i18n
aNNit('accessibility')
// a11y
aNNit('ihavewaytoomuchtimeonmyhands')
// i26s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment