Methods
countConsonants(word, repetitions) → {number}
Gets amount of CONSONANTS in a string.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
word |
string | A word. | |
repetitions |
boolean |
true
|
Optional. Consider repetitions of chars. |
Returns:
Amount of consonants.
- Type
- number
countNumbers(word, repetitions) → {number}
Gets amount of NUMBERS in a string.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
word |
string | A word. | |
repetitions |
boolean |
true
|
Optional. Consider repetitions of chars. |
Returns:
Amount of numbers.
- Type
- number
countVowels(word, repetitions) → {number}
Gets amount of VOWELS in a string.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
word |
string | A word. | |
repetitions |
boolean |
true
|
Optional. Consider repetitions of chars. |
Returns:
Amount of vowels.
- Type
- number