Methods
(static) capitalizeFirstLetter(sentence, exceptions) → {string}
Capitalize the first letter of each word in a sentence, that is not contained in the exception list. Useful for headlines.
Parameters:
Name | Type | Description |
---|---|---|
sentence |
string | |
exceptions |
Array.<string> |
- Source:
Returns:
Sentence with capitalized first letter.
- Type
- string