refactor(es modules): continue migration

This commit is contained in:
Azgaar 2022-06-25 18:56:56 +03:00
parent a929667796
commit eaa0046e67
8 changed files with 103 additions and 74 deletions

View file

@ -8,7 +8,7 @@ function vowel(c) {
// remove vowels from the end of the string
function trimVowels(string, minLength = 3) {
while (string.length > minLength && vowel(last(string))) {
while (string.length > minLength && vowel(string.at(-1))) {
string = string.slice(0, -1);
}
return string;