voca
Version:
The ultimate JavaScript string library
27 lines (22 loc) • 616 B
JavaScript
;
require('./internal/is_nil.js');
require('./is_string.js');
var coerce_to_string = require('./internal/coerce_to_string.js');
/**
* Converts the `subject` to upper case.
*
* @function upperCase
* @static
* @since 1.0.0
* @memberOf Case
* @param {string} [subject=''] The string to convert to upper case.
* @return {string} Returns the upper case string.
* @example
* v.upperCase('school');
* // => 'SCHOOL'
*/
function upperCase(subject) {
var subjectString = coerce_to_string.coerceToString(subject);
return subjectString.toUpperCase();
}
module.exports = upperCase;