Skip to content

Commit

Permalink
Implementing titleCase() function
Browse files Browse the repository at this point in the history
  • Loading branch information
panzerdp committed Jan 6, 2017
1 parent b3b0366 commit 49a48b9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/case/title_case.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* Converts the subject to title case.
*
* @function snakeCase
* @static
* @since 1.0.0
* @memberOf Case
* @param {string} [subject=''] The string to convert to title case.
* @param {string} [ignoreWords] The list of words that should not be changed.
* @return {string} Returns the title case string.
* @example
* v.snakeCase('learning to fly');
* // => 'learning_to_fly'
*
* v.snakeCase('LearningToFly');
* // => 'learning_to_fly'
*
* v.snakeCase('-Learning-To-Fly-');
* // => 'learning_to_fly'
*/
export default function titleCase(subject) {
return subject;
}

0 comments on commit 49a48b9

Please sign in to comment.