harella1/video.js

View on GitHub
src/js/utils/to-title-case.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * @file to-title-case.js
 *
 * Uppercase the first letter of a string
 *
 * @param  {String} string String to be uppercased
 * @return {String}
 * @private
 * @method toTitleCase
 */
function toTitleCase(string){
  return string.charAt(0).toUpperCase() + string.slice(1);
}

export default toTitleCase;