Skip to content

Commit 1848147

Browse files
committed
Update description/documentation with explanation of title case, and simplifying assumptions this function makes
1 parent 4ab047d commit 1848147

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Conversions/TitleCaseConversion.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
/*
2-
Problem statement and Explanation : https://www.codeproject.com/Tips/162540/Letter-Case-Conversion-Algorithms-Title-Case-Toggl
2+
Problem statement and Explanation : https://www.codeproject.com/Tips/162540/Letter-Case-Conversion-Algorithms-Title-Case-Toggl.
3+
[Title case](https://en.wikipedia.org/wiki/Title_case) is a style where all words are capitalized. Officially, title case
4+
does not capitalize some words, such as very short words like "a" or "is", but for the purposes of this function, a general approach
5+
is taken where all words are capitalized regarless of length.
36
*/
47

58
/**

0 commit comments

Comments
 (0)