Created
October 26, 2014 08:24
-
-
Save CS1000/acf63e2cd1a1f3ac0bbc to your computer and use it in GitHub Desktop.
ABBReviate in JS (aka, remove vowels)
This file contains hidden or 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
String.prototype.abbr = function() {return this.replace(/[aeiou]+/g,'')}; | |
//eg: | |
'people'.abbr() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment