o9s
is a microblog
home archives search feed blogroll


Vowel Counter

<o9>  replace any letter that is not a vowel with an
      empty string and get the length of the string
<MSC> str.replace(/[^aeiou]/ig,"").length;
Posted on 2018-05-08   #javascript     #oneliner  






← Next post    ยท    Previous post →