News

The following toTitleCase() function does the latter: The regex looks for two patterns, either a word with an apostrophe mark or one without, then uses the Javascript || (OR) operator to get the ...