Truncate all specified vowels from given word unless it is the first character
MIT License
Truncate vowels ~
e
ℹ️🅾️
$ npm install trnct
const trnct = require('trnct');
trnct('vowels');
//=> 'vwls'
Truncate all specified vowels from given word unless it is the first character
str
String inputvowels
(Array<String> | String) vowels to truncate (optional, default ['e','i','o']
)trnct('extension');
//=> 'extnsn'
trnct('extension', 'ei');
//=> 'extnson'
Returns String truncated string