function titleCase(subject, noSplit) {
    var subjectString = coerceToString(subject);
    var noSplitArray = Array.isArray(noSplit) ? noSplit : [];
    var wordsRegExp = REGEXP_EXTENDED_ASCII.test(subjectString) ? REGEXP_LATIN_WORD : REGEXP_WORD;
    return subjectString.replace(wordsRegExp, function(word, index) {
      var isNoSplit = index > 0 && noSplitArray.indexOf(subjectString[index - 1]) >= 0;
      return isNoSplit ? word.toLowerCase() : capitalize(word, true);
    });
  }
Converts the subject to title case.

@function titleCase
@static
@since 1.4.0
@memberOf Case
@param  {string} [subject=''] The string to convert to title case.
@param  {Array}  [noSplit]    Do not split words at the specified characters.
@return {string}              Returns the title case string.
@example
v.titleCase('learning to fly');
// => 'Learning To Fly'

v.titleCase('jean-luc is good-looking', ['-']);
// => 'Jean-luc Is Good-looking'